
Full clean docker commands
Total clean
sudo docker stop $(docker ps -a -q) || echo "Nothing to delete" && sudo docker rm $(docker ps -a -q) || echo "Nothing to delete" && docker ps -a && docker rmi $(docker images -a -q) || echo "Nothing to delete" && docker volume rm $(docker volume ls -q) || echo "Nothing to delete" && docker system prune -a
Clean all containers
sudo docker stop $(docker ps -a -q) || echo "Nothing to delete" && sudo docker rm $(docker ps -a -q) || echo "Nothing to delete" && docker ps -a
Clean up unused Docker images
docker system prune -a -f