Skip to content
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

Default size for devicemapper data can exceed free space #3059

Closed
amluto opened this issue Dec 5, 2013 · 3 comments
Closed

Default size for devicemapper data can exceed free space #3059

amluto opened this issue Dec 5, 2013 · 3 comments

Comments

@amluto
Copy link

amluto commented Dec 5, 2013

My /var lives on a 32GB partition. Docker helpfully created a 100GB sparse devicemapper data file, which (unsurprisingly) exceeded my free space rather quickly, causing docker to explode.

Given that there's no way that a sparse file that exceeds the total fs size can work well, docker probably shouldn't do this.

@alexlarsson
Copy link
Contributor

The file will not use more than the actual size anyway, I fail to see how this would be different e.g. with the aufs backend. When you have more data in containers than fit on /var you'll run into problems, independent of the backend.

That said, we have some issues in reclaiming space. One was fixed in 0.7.1, with the removal of -init layers, the other being that devicemapper doesn't seem to be re-sparsing on image removal (reported in another issue somewhere)

@alexlarsson
Copy link
Contributor

other size issue tracked in #3182

@crosbymichael
Copy link
Contributor

Yes, as Alex said, it will not use more than the actual size. The space reclaiming issues have been fixed in the recent versions of docker.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants