Last active
March 9, 2023 15:44
-
-
Save kyktommy/b57dcdb9f95eb55410b4b6acc5f1419b to your computer and use it in GitHub Desktop.
docker helpers
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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