Changes

Docker Swarm Classic

830 bytes added, 20:44, 4 July 2018
no edit summary
# We create the physical or virtual environment, and install docker manually. Then the nodes must be added to the cluster also manually.
# 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
 
<pre>
# 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
</pre>