Last active
May 29, 2022 13:22
-
-
Save kazu69/9742759 to your computer and use it in GitHub Desktop.
docker container stop, remove and remove images on line
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# stop all container | |
# -a=false: Show all containers. Only running containers are shown by default. | |
# -q=false: Only display numeric IDs | |
sudo docker stop $(docker ps -a -q) | |
# remove all container | |
sudo docker rm $(docker ps -a -q) | |
# remove all images | |
# -a=false: show all images | |
# -q=false: only show numeric IDs | |
sudo docker rmi $(sudo docker images -a -q) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello friend, How are you? I put picture please check it. thank you.