Skip to content

Instantly share code, notes, and snippets.

@farhany
Last active April 28, 2019 01:33
Show Gist options
  • Save farhany/2f5cb21d33c44ccd64fea71803293416 to your computer and use it in GitHub Desktop.
Save farhany/2f5cb21d33c44ccd64fea71803293416 to your computer and use it in GitHub Desktop.
docker cmdline - useful commands
# 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