Skip to content

Instantly share code, notes, and snippets.

@RobbieClarken
Last active August 30, 2016 12:42
Show Gist options
  • Save RobbieClarken/47defb47f75f0102f5b86bbad82312e4 to your computer and use it in GitHub Desktop.
Save RobbieClarken/47defb47f75f0102f5b86bbad82312e4 to your computer and use it in GitHub Desktop.

https://github.com/weaveworks/scope

Old

DNS issues on Mac:

docker-machine create --engine-opt dns=8.8.8.8 -d virtualbox gdns
eval "$(/usr/local/bin/docker-machine env gdns)"
docker run -it ubuntu
ping google.com

Accessing container IPs from Mac:

$ docker inspect mycontainer | grep IPAddress
                    "IPAddress": "172.20.0.2",
$ ping 172.20.0.2
Request timeout for icmp_seq 0
$ docker-machine ip default
192.168.99.100
$ sudo route -n add 172.20.0.0/16 192.168.99.100
$ ping 172.20.0.2
64 bytes from 172.20.0.2: icmp_seq=0 ttl=63 time=0.580 ms
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment