Docker network architecture2/13/2023 Now if we inspect our network name via the following command, you will now see that the container is attached to the bridge. Sudo docker run –it ubuntu:latest /bin/bash Let’s spin up an Ubuntu container with the following command − Now let’s run a container and see what happens when we inspect the network again. The output of the above command is shown below − The command will output all the details about the network. Networkname − This is the name of the network you need to inspect. If you want to see more details on the network associated with Docker, you can use the Docker network inspect command. The output of the above command is shown below Inspecting a Docker network The command will output all the networks on the Docker Host. This command can be used to list all the networks associated with Docker on the host. Now let’s look at some commands associated with networking in Docker. This is a bridge between the Docker Host and the Linux Host. This adapter is created when Docker is installed on the Docker Host. If you do an ifconfig on the Docker Host, you will see the Docker Ethernet adapter. Docker takes care of the networking aspects so that the containers can communicate with other containers and also with the Docker Host.
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |