Setting tag on an image
Bash
sudo docker tag 5db5f8471261 rhrn/ubuntu:webdevGet bash inside runned container
Bash
sudo docker exec -i -t 665b4a1e17b6 bashClear docker unused images
Bash
docker rmi $(docker images -f "dangling=true" -q)Clear docker exited containers
Bash
docker rm $(docker ps -aq -f status=exited)Clear unused volumes
Bash
docker volume ls -qf dangling=true | xargs -r docker volume rmSort images by size
Bash
docker images --format "{{.ID}}\\t{{.Size}}\\t{{.Repository}}" | sort -k 2 -h
2 comments
Thanks for sharing. I read many of your blog posts, cool, your blog is very good.
Thank you for your sharing. I am worried that I lack creative ideas. It is your article that makes me full of hope. Thank you. But, I have a question, can you help me?