March 2020
Beginner
592 pages
14h 14m
English
Here are some sample answers to the questions presented in this chapter:
$ docker swarm init [--advertise-addr <IP address>]
The --advertise-addr is optional and is only needed if you the host have more than one IP address.
$ docker swarm leave
On one of the master nodes, execute the command $ docker node rm -f<node ID>, where <node ID> is the ID of the worker node to remove.
$ docker network create \ --driver overlay \ --attachable \ front-tier
$ docker service create --name web \ --network front-tier \ --replicas 5 \ -p 3000:80 \ nginx:alpine ...
Read now
Unlock full access