Chapter 8, Clustering with Docker Swarm
Here are some sample answers to the questions presented in this chapter:
- False; the standalone Docker Swarm is no longer supported or considered a best practice.
- You need the IP address of your Docker Swarm manager, and also the token that is used to authenticate your workers against your manager.
- You would use
docker node ls
. - You would add the
--pretty
flag. - You would use
docker node promote [node name]
. - You would run
docker service scale cluster=[x] [service name]
, where[x]
is the number of containers that you want to scale by.