I'am starting use Docker! Now I can run project on my Windows PC without Virtual Machine!
The biggest issue was then I have ghost process with docker container.
This commands will be helpful if you wont to rebuild all your containers
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 run images | |
docker stop $(docker ps -a -q) | |
# Remove all images | |
docker rm $(docker ps -a -q) | |
# Remove all images phisically | |
docker rmi $(docker images -a -q) | |
# Delete with force | |
docker rmi -f <container_id> | |
# Remove unused images | |
docker image prune | |
# Remove stopped containers. | |
docker container prune | |
# Remove unused volumes | |
docker volume prune | |
# Remove unused networks | |
docker network prune | |
# Command to run all prunes: | |
docker system prune |
more about Docker you can read:
https://habrahabr.ru
https://habrahabr.ru/
https://dou.ua/
Comments
Post a Comment