Docker Swarm Classic

Revision as of 20:44, 4 July 2018 by Adam (talk | contribs)

Revision as of 20:44, 4 July 2018 by Adam (talk | contribs)

<< Back to Orchestration main



https://docs.docker.com/swarm/reference/manage/


There are two main options for creating swarm classic cluster.

  1. We create the physical or virtual environment, and install docker manually. Then the nodes must be added to the cluster also manually.
  2. We use the docker-machine command with the --swarm options to create new VMs that are part of the swarm cluster out of the box.


A régi swarm használatához szükség van egy 'discovery' szolgáltatásra. Ezek közül kettőt emelnék ki:

  • token: egy
# docker ps -a
CONTAINER ID        IMAGE               COMMAND                  CREATED             STATUS              PORTS                                    NAMES
4d6e01c1b7ce        swarm:latest        "/swarm join --adver…"   6 minutes ago       Up 6 minutes        2375/tcp                                 worker1/swarm-agent
116582ce7e0c        swarm:latest        "/swarm join --adver…"   9 minutes ago       Up 9 minutes        2375/tcp                                 swarm-master/swarm-agent
88440d8e5e1b        swarm:latest        "/swarm manage --tls…"   9 minutes ago       Up 9 minutes        2375/tcp, 192.168.42.35:3376->3376/tcp   swarm-master/swarm-agent-master