Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save truedat101/527c62a0162467f77059bf6b354601d0 to your computer and use it in GitHub Desktop.
Save truedat101/527c62a0162467f77059bf6b354601d0 to your computer and use it in GitHub Desktop.
docker whoami?
Same here
Docker Desktop 2.2.0.5
Docker Engine 19.03.8
On Mac OSX 10.14.6
$ docker run -it --rm -p 80:80 --name whoami containous/whoami
On a remote machine
$ curl 192.168.25.87
Hostname: 07a90be6f0fa
IP: 127.0.0.1
IP: 172.17.0.2
RemoteAddr: 172.17.0.1:46448
GET / HTTP/1.1
Host: 192.168.25.87
User-Agent: curl/7.54.0
Accept: /
Expected to be the ip from remote client on 192.168.25.0 network
See https://github.com/docker/for-mac/issues/180#issuecomment-619462837
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment