Docker Community Forums

Share and learn in the Docker community.

More Info on Docker.qcow2

beta

(Vinayan3) #1

Expected behavior

The .qcow2 not to be so large

Actual behavior

The .qcow2 file is 33.3gb last week it was around 20GB. It seems to grow.

Information

I read in another post it’s storing stuff which goes to volumes? Is there anyway that I can inspect whats stored in there and clean it up?


(Maxime) #2

Mine is 15Gb but growing too


(Eric Rutherford) #3

It’s going to keep growing unless you clean up your unused docker images/containers/volumes

docker rm $(docker ps -q -f ‘status=exited’)
docker rmi $(docker images -q -f “dangling=true”)
docker volume rm $(docker volume ls -q -f ‘dangling=true’)

The volumes one is dangerous if your active stack isn’t running in docker.


(Vinayan3) #4

I have run the commands and the size has dropped. I am reading on another thread .qcow2 free space can’t be reclaimed therefore it’ll continue to grow. The comment on that is here:


(Paul Cassidy) #5

Is there an issue to track for this? I’m having to delete my Docker.qcow2 every couple weeks at this point.


(Jpgorman) #6

Can’t tell you how much time I have wasted on successive docker image screw ups this year. Releasing this even in a beta without the ability to expand and contract the image to required size is just beyond belief.