Skip to content

Instantly share code, notes, and snippets.

@Aviksaikat
Created February 7, 2023 00:57
Show Gist options
  • Save Aviksaikat/add15f8148e50290eb0f7087924ff280 to your computer and use it in GitHub Desktop.
Save Aviksaikat/add15f8148e50290eb0f7087924ff280 to your computer and use it in GitHub Desktop.
get the ip address of a given docker container name of id
docker inspect --format '{{ .NetworkSettings.IPAddress }}' $1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment