Join David Davis for an in-depth discussion in this video Modifying network ports, part of Docker Essential Training: 2 Orchestration.
- [Narrator] Whether you deployed…your application in a container…managed by a service or as a service managed by a stack,…at some point, it's likely that…you're going to want to modify…the network ports that are being exposed…to those containers and those applications running inside.…Now, the command that you use to do that is…docker service update to update the service.…Unless, you deployed that service inside a stack.…In that case, you would want to edit…the stack file and then redeploy the stack…to update the stack that's already running.…
And modify the network ports that are being exposed.…If we do a docker service ls,…we can see that we have the web app one service…and mystack web service.…So, let's do docker service ps on mystack web.…And you can see there are many replicas,…looks like 30 replicas running.…Now, if we want to modify the network…ports that are being published,…we can use the docker service update command.…
Now, if you're unclear on exactly what commands to use…when it comes to modifying specific ports,…
Released
4/6/2018- Setting up a Docker Swarm cluster
- Locking a Swarm cluster
- Why Quorum is important
- Visualizing Swarm services
- Analyzing services with Docker Inspect
- Troubleshooting a service
- Using templates with Docker services
Share this video
Embed this video
Video: Modifying network ports