Skip to content

Instantly share code, notes, and snippets.

@thnery
Created March 7, 2019 17:27
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save thnery/c6d25dbfbe6f9790c4fb6ecd45f60ff4 to your computer and use it in GitHub Desktop.
Docker useful commands
# removes all docker images
docker images -aq | awk '{print $1}' | xargs docker rmi -f
# removes all docker containers
docker ps -aq | awk '{print $1}' | xargs docker rm -f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment