Skip to content

Instantly share code, notes, and snippets.

@leonlaser
Last active October 24, 2020 14:54
Show Gist options
  • Save leonlaser/ae3c0ecdd5f5e0991f7b0daceb5fee7e to your computer and use it in GitHub Desktop.
Save leonlaser/ae3c0ecdd5f5e0991f7b0daceb5fee7e to your computer and use it in GitHub Desktop.
[Docker helper] Handling container and images #docker #bash #sh #terminal #console
#!/bin/sh
docker rmi -f $(docker images -f "dangling=true" -q)
#!/bin/sh
docker images -f “dangling=true” -q
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment