To assess your learning progress, please answer the following questions:
- How do you initialize a new Docker Swarm?
A. docker init swarm
B. docker swarm init --advertise-addr <IP address>
C. docker swarm join --token <join token>
- You want to remove a worker node from a Docker Swarm. What steps are necessary?
- How do you create an overlay network called front-tier? Make the network attachable.
- How would you create a service called web from the nginx:alpine image with five replicas, which exposes port 3000 on the ingress network and is attached to the front-tier network?
- How would you scale the web service down to three instances?