Docker Community Forums

Share and learn in the Docker community.

How to create a swarm on Docker Cloud via the REST API?

swarm

(Attilanohl) #1

I can create a a swarm running on AWS by clicking through the steps at the wizard . However, I’d like to create the swarm from a program using the REST API. I’m reading the documentation and I could query what actions were executed (e.g. a “Swarm Create”), but I don’t see this action in the documentation. I see that I can create “Node Clusters” on the API, but I don’t see where I could set the number of master and worker nodes. What REST API call shall I use?