To assess your learning progress please answer the following questions:
- How do you initialize a new Docker Swarm?
- docker init swarm
- docker swarm init --advertise-addr <IP address>
- 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 will 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 will you scale the web service down to three instances?