Easiest way to connect Docker container to local host
问题 I am wondering if is it possible to connect to an app on local host from Docker container. I run two Docker container which are connected to each other via link option. But how can I connect one of the containers to the local host? 回答1: Yes, use docker run --network=container:<container-id> --network='container:': reuse another container's network stack This let you run a container sharing the same network interface (then localhost) from another container. Alternatively, you can use the host