Skip to content

Instantly share code, notes, and snippets.

@Merwanski
Created December 13, 2021 13:23
Show Gist options
  • Save Merwanski/799a98d5e85f19a0025622755535f0e0 to your computer and use it in GitHub Desktop.
Save Merwanski/799a98d5e85f19a0025622755535f0e0 to your computer and use it in GitHub Desktop.
clear pc from docker images / containers
# REMOVE the containers no longer running
docker rm $(docker ps -a -q)
# REMOVE the images without any attached container to them
docker rmi $(docker images -q -f dangling=true)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment