From 1f03fec912ff771e80e30741b0680b5a31120dc6 Mon Sep 17 00:00:00 2001 From: Deepak Goel Date: Thu, 11 Jul 2019 15:51:41 -0700 Subject: [PATCH] readme --- README.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..7c98ae3 --- /dev/null +++ b/README.md @@ -0,0 +1,16 @@ +# docker-mac-network + +In case of Docker on MAC, the host doesn't have direct access to the docker network. +Due to this, the services running in docker container cannot be accessed directly via +their IP addresses. One of the solution is to create a VPN between the host and the +docker network. + + ### Create a VPN +```bash +curl -sL https://raw.githubusercontent.com/mesosphere/docker-mac-network/master/mac-network.sh | bash -s create +``` + + ### Destroy the VPN +```bash +curl -sL https://raw.githubusercontent.com/mesosphere/docker-mac-network/master/mac-network.sh | bash -s destroy +```