Created
March 22, 2022 15:22
-
-
Save hi-ko/811f632450f1e55027873a83252417cf to your computer and use it in GitHub Desktop.
basic docker commands
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
docker container ls -a | |
docker container rm cc3f2ff51cab cd20b396a061 | |
# Removing all stopped containers | |
docker container prune | |
# Stop and remove all containers | |
docker container stop $(docker container ls -aq) | |
docker container rm $(docker container ls -aq) | |
# images | |
docker image ls | |
docker image rm 75835a67d134 2a4cca5ac898 | |
docker image prune | |
# Removing all unused images | |
docker image prune -a | |
# Removing Docker Volumes | |
docker volume ls | |
docker volume rm ... | |
# Removing all unused volumes | |
docker volume prune | |
docker network ls | |
docker network rm c520032c3d31 | |
# Removing all unused network # | |
docker network prune |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment