Docker Shared Mount ( Mount directory from one container to another )



Docker : Use host networking

Using host networking

If you use the host network driver for a container,

that container’s network stack is not isolated from the Docker host.

For instance, if you run a container which binds to port 80 and you use host networking,

the container’s application will be available on port 80 on the host’s IP address.

The host networking driver only works on Linux hosts,

and is not supported on Docker for Mac, Docker for Windows, or Docker EE for Windows Server.


Command Line :

--network host to the docker container create command.

In this case,

if a service container binds to port 80, only one service container can run on a given swarm node.

If your container or service publishes no ports, host networking has no effect.