Skip to content

Instantly share code, notes, and snippets.

@tommyskott
Last active March 26, 2021 08:18
Show Gist options
  • Save tommyskott/69eb07cb23b4f18cf0ff7b5867b965c6 to your computer and use it in GitHub Desktop.
Save tommyskott/69eb07cb23b4f18cf0ff7b5867b965c6 to your computer and use it in GitHub Desktop.
A few nifty docker commands

Docker Snippets

In order to delete all images, use the given command

docker rmi $(docker images -q)

In order to delete all containers, use the given command

docker rm $(docker ps -a -q)
@johannes-jansson
Copy link

Such code! What effect! Much amazing. Wow!

@trollcus
Copy link

Saved my computers life one time! #blessed

@tommyskott
Copy link
Author

@trollcus 😆

@emmasjoegren
Copy link

Wow! This has been a tremendous help in my working life. Thank you so so much!!

@tommyskott
Copy link
Author

Wow! This has been a tremendous help in my working life. Thank you so so much!!

Glad it helped! 🥸

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment