Skip to content

Instantly share code, notes, and snippets.

@sobi3ch
Created May 29, 2015 13:02
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 sobi3ch/1a7a5fdb6d15356cc631 to your computer and use it in GitHub Desktop.
Save sobi3ch/1a7a5fdb6d15356cc631 to your computer and use it in GitHub Desktop.
docker-ip
#!/bin/sh
# Get IP address from latest docker instance
exec docker inspect --format '{{ .NetworkSettings.IPAddress }}' "$@"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment