Last active
April 28, 2019 01:33
-
-
Save farhany/2f5cb21d33c44ccd64fea71803293416 to your computer and use it in GitHub Desktop.
docker cmdline - useful commands
This file contains hidden or 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
# Get IP | |
docker inspect -f '{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' container_name_or_id | |
# Remove stopped images/etc | |
docker system prune | |
docker image prune | |
docker volume prune |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment