August 2017
Intermediate to advanced
332 pages
9h 16m
English
We have connected to the application running inside the container. In fact, the connection is two-way, because if you remember our previous examples, we executed the apt-get install commands from inside and the packages were downloaded from the internet. How is this possible?
If you check the network interfaces on your machine, you can see that one of the interfaces is called docker0:
$ ifconfig docker0docker0 Link encap:Ethernet HWaddr 02:42:db:d0:47:db inet addr:172.17.0.1 Bcast:0.0.0.0 Mask:255.255.0.0...
The docker0 interface is created by the Docker daemon in order to connect with the Docker container. Now, we can see what interfaces are created inside the Docker container with the docker inspect command:
$ docker ...
Read now
Unlock full access