Skip to content

Instantly share code, notes, and snippets.

@dmouse
Created July 8, 2016 17:51
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 dmouse/0c685cf3b7de04012d8cfdad7b25202a to your computer and use it in GitHub Desktop.
Save dmouse/0c685cf3b7de04012d8cfdad7b25202a to your computer and use it in GitHub Desktop.
docker-ip show the IP address and container name
function docker-ip
docker inspect --format '{{ .Name }} {{ .NetworkSettings.IPAddress }}' $argv;
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment