-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Inaccurate Results from docker system df #942
Comments
This issue also affects
They remained after a docker prune. |
I'm seeing something similar with
Here's what Docker reports:
Here's the actual disk usage:
Note the 14GB discrepancy |
The "vfs" dir has nothing to do with build cache. @jethrogb |
@cpuguy83 yup, logs were it in my case, thanks! I think docker should show this. I guess this is moby/moby#32205 |
@jethrogb Agreed and yep! For the OP's issue of having extra layer dirs lying around, on moby master there is a garbage collector which runs on daemon start which removes these unreferenced layers. Going to close this one as a non-issue. |
What else is relevant and not taken into account? This also seems to be an issue that pops up every now and then. Issue #38848 seems to be a duplicate. |
Description
Steps to reproduce the issue:
Unknown, however this results from using multiple
FROM
statements in aDockerfile
withdocker build .
in my experience.Describe the results you received:
After running a build, Docker seems to keep multiple layers in it's VFS storage that cannot be seen through
docker system df -v
Note the results from
docker system df -v
Note how it also says build cache usage is at 0B. Now note the output of the VFS directory:
That is over 12GB of unaccounted for space being used.
Output from
ncdu
:Describe the results you expected:
Docker should list all layers still in storage in the
vfs/
directory.Additional information you deem important (e.g. issue happens only occasionally):
Note that this seems to only happen when using docker in docker.
It should be noted that this build is only about 500mb. There is no reason to be using 12Gb, and I can't seem to find out where all of this is coming from.
Output of
docker version
:Output of
docker info
:Additional environment details (AWS, VirtualBox, physical, etc.):
Vultr VPS with Docker in Docker.
The text was updated successfully, but these errors were encountered: