Search code examples
dockerdocker-machinedocker-cloud

Docker Swarm vs. Docker Cluster


I created a swarm cluster via

docker-machine -d azure --swarm --swarm-master --swarm-discovery token://SWARM_CLUSTER_TOKEN my-swarm-master

and

docker-machine  -d azure--swarm --swarm-discovery token://SWARM_CLUSTER_TOKEN my-node-01

After that, I Logged into cloud.docker.com - but when I click on Node Clusters or Nodes I can't see my swarm.

So is swarm (via command line) and cluster (via cloud.docker.com) not the same thing? What's the difference and when should I use which one?

Edit: Yes, my Azure subscription is added in cloud.docker.com under Cloud Settings.


Solution

  • They are separate. The docker-machine commands you ran create a self hosted swarm that you manage yourself (from your first docker-machine command). The Docker Cloud creates an environment that's managed for you from the Docker infrastructure. Without access to that token used by Swarm, Docker Cloud won't know about the nodes in your Swarm.