Skip to content

Instantly share code, notes, and snippets.

@MatteoGioioso
Last active August 7, 2021 07:57
Show Gist options
  • Save MatteoGioioso/c93b1e562705c20311c8785be48b43bb to your computer and use it in GitHub Desktop.
Save MatteoGioioso/c93b1e562705c20311c8785be48b43bb to your computer and use it in GitHub Desktop.
docker volume rm $(docker volume ls -qf dangling=true);
docker volume ls -qf dangling=true | xargs -r docker volume rm;
docker rmi $(docker images --filter "dangling=true" -q --no-trunc);
docker rmi $(docker images | grep "none" | awk '/ / { print $3 }'); # docker rmi $(docker images | tr -s ' ' | cut -d ' ' -f 3)
docker rm $(docker ps -qa --no-trunc --filter "status=exited");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment