Skip to content

Instantly share code, notes, and snippets.

@emmanuelnk
Last active December 4, 2020 07:32
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 emmanuelnk/f198fd48226d868cae5be4a9de2bf38e to your computer and use it in GitHub Desktop.
Save emmanuelnk/f198fd48226d868cae5be4a9de2bf38e to your computer and use it in GitHub Desktop.
Expose docker hostname
docker inspect --format='{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' container-name
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment