Docker · Arazzo Workflow
Docker Deploy a Replicated Swarm Service with a Secret
Version 1.0.0
Confirm the node is in a swarm, create a secret, deploy a replicated service that mounts it, and watch the tasks converge.
Provider
Workflows
deploy-swarm-service
Create a secret and deploy a replicated swarm service that consumes it.
Verifies swarm membership, creates a named secret from base64 data, creates a replicated service that mounts the secret into its tasks, and lists the tasks scheduled for that service.
1
confirmSwarm
Confirm this daemon is part of a swarm before touching any service or secret endpoint. On a non-swarm node every subsequent call in this flow returns 503.
2
createSecret
Create the secret in the swarm's raft store. Secrets are only ever delivered to tasks that explicitly reference them, and only in memory.
3
createService
Deploy the replicated service. The task template mounts the secret created above at /run/secrets/, sets a rolling update policy, and restarts tasks on failure.
4
inspectService
Read the service back to capture its version index, which any later update must supply to avoid a conflicting write.
5
listTasks
List the tasks the scheduler has placed for this service, filtered to those desired to be running, so the caller can watch the service converge.
Source API Descriptions
openapi
openapi
openapi
Arazzo Workflow Specification
Work with this as data
Every workflow here is available over the APIs.io API and to AI agents over MCP.