课程: Docker Networking: Creating, Managing, and Troubleshooting Container Networks
免费学习该课程!
今天就开通帐号,24,700 门业界名师课程任您挑!
Challenge: Debugging Docker networks - Docker教程
课程: Docker Networking: Creating, Managing, and Troubleshooting Container Networks
Challenge: Debugging Docker networks
(upbeat music) - [Instructor] In this challenge, you'll run containers connected to a custom network and troubleshoot network connectivity errors. First, there's a file named compose.challenge.yml in the Docker Networking folder. You can find this in the branch named 05_03 the GitHub repo for this course, create and run the containers for this challenge by typing the following command in the terminal in VS Code docker compose, then the F flag followed by the name of the compose.challenge.yml file and the command up. You should have two running containers, app-1 and db-1. A custom network was also created by the docker compose up command. What is the name of the custom network. One of the containers is not connected to the custom network. Which one is it? Once you have identified the container that is not connected to the network, connect the container to the custom network. Verify that the container's connected to the custom network. Good luck with this challenge. I'll walk you…