March 2017
Beginner to intermediate
925 pages
18h 11m
English
Once the container is up, we would like to access it from outside. If you have started the container with the --net=host option, then it can be accessed through the Docker host IP. With --net=none, you can attach the network interface from the public end or through other complex settings. Let's see what happens in by default—where packets are forwarded from the host network interface to the container.
Make sure the Docker daemon is running on the host and you can connect through the Docker client.
-P option:$ docker run --expose 80 -i -d -P --name f20 fedora /bin/bash
This automatically maps any network port of the container to a random high port of the ...
Read now
Unlock full access