课程: Docker Networking: Creating, Managing, and Troubleshooting Container Networks

免费学习该课程!

今天就开通帐号,24,700 门业界名师课程任您挑!

Essential Docker networking commands

Essential Docker networking commands

- [Instructor] Docker networking errors can prevent containers from communicating with each other or with external systems. In this video, I'll walk you through a step-by-step process to identify and resolve common networking issues using basic docker commands. Back in VS Code, open a terminal. When troubleshooting, start by checking the available networks and their configurations using the Docker network LS command. This command shows the list of networks including Bridge, Host, none and any custom networks. Look for the network your containers are connected to. You should see the My app Custom Bridge Network that we used in the previous chapter. If you don't see the network, open the compose file in VS Code and run Docker compose up and the D flag. You can also inspect a specific network using the Docker network inspect command, and the name of the network. This displays details such as the containers connected to the network, IP addresses and the network driver type. Look for…

内容