Skip to content

Instantly share code, notes, and snippets.

@kyktommy
Last active March 9, 2023 15:44
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 kyktommy/b57dcdb9f95eb55410b4b6acc5f1419b to your computer and use it in GitHub Desktop.
Save kyktommy/b57dcdb9f95eb55410b4b6acc5f1419b to your computer and use it in GitHub Desktop.
docker helpers
# remove images by name
docker rmi $(docker images --format '{{.Repository}}:{{.Tag}}' | grep 'imagename')
# check volume setting in container
docker inspect -f "{{ .Mounts }}" container_id
# check network name in container
docker inspect -f '{{range.NetworkSettings.Networks}}{{.IPAddress}}{{end}}' container_id
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment