课程: Docker Networking: Creating, Managing, and Troubleshooting Container Networks
免费学习该课程!
今天就开通帐号,24,700 门业界名师课程任您挑!
Solution: Debugging Docker networks - Docker教程
课程: Docker Networking: Creating, Managing, and Troubleshooting Container Networks
Solution: Debugging Docker networks
(upbeat music) - [Instructor] In this challenge, you ran containers connected to a custom network and troubleshooted network connectivity errors. First, I created a file named compose.challenge.yml in the dockernetworking folder. You ran the containers using the docker compose command, then the -f flag, followed by the name of the compose.challenge.yml file and the command up. This should result in two running containers, app-1 and db-1. A custom network was also created by the docker compose up command, and I asked you the name of the custom network. You can find this information using the docker network ls command. This will list all networks created on your system. The custom network for this challenge is dockerchallenge_custom_bridge. One of the containers was not connected to the custom network on purpose and I asked you to identify it. You can view all of the containers attached to a network using the docker network inspect command, followed by the name of the custom network…