Skip to content

Instantly share code, notes, and snippets.

@stoffeastrom
Last active June 28, 2017 07:25
Show Gist options
  • Save stoffeastrom/e768922ebc2f4fe51201fa6070c7ad53 to your computer and use it in GitHub Desktop.
Save stoffeastrom/e768922ebc2f4fe51201fa6070c7ad53 to your computer and use it in GitHub Desktop.
Docker things

Remove all dangling images

docker rmi $(docker images -q --filter='dangling=true') -f

Get ip address

docker inspect --format '{{ .NetworkSettings.Networks.nat.IPAddress }}' ID

Save image

docker save -o IMGPATH ID

Load image

docker load -i IMGPATH
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment