Skip to content
This repository has been archived by the owner on Dec 1, 2018. It is now read-only.

Docker Machine Space Full - What can I do? #179

Open
LFilewalker opened this issue Nov 4, 2016 · 2 comments
Open

Docker Machine Space Full - What can I do? #179

LFilewalker opened this issue Nov 4, 2016 · 2 comments

Comments

@LFilewalker
Copy link

Hi,
I have gathered quite a number of projects now and since the storage file is ~20gb at maximum I wonder what can I do if the docker machine runs out of space? Is there a simple way to resize the storage file? Or is there even a configuration that lets me increase the storage limit for the next time I recreate the VM?
Sorry if this should be the wrong place to ask about this issue, but since I'm using dsh I wanted give it a shot.

@lmakarov
Copy link
Owner

lmakarov commented Nov 6, 2016

Hi @LFilewalker, since sources are mounted via NFS or SMB in the VM, the number and size of the projects do not matter. Though, images and containers may fill up the space over time.

dsh cleanup can free up some space.
I personally kill the VM and start fresh every once in a while. Obviously, you have to create DB dumps and then reimport then.

Resizing the VM disk is not supported in dsh. You can try doing this via vboxmanage if you absolutely need it: https://forums.virtualbox.org/viewtopic.php?f=35&t=50661

@LFilewalker
Copy link
Author

Hi @lmakarov,
what's consuming most are the databases actually, and you get to reach the limit pretty fast if there are 2 or 3 projects each with dumps about 5gb. I also tried to create multiple docker machines to split up the projects by copying the vagrant files to different folders. But because of the dns-gen I'm using I can't simply switch the machines without rebooting the host system. Couldn't figure this out for myself yet. I'm working on a mac btw.
Thank you for answering. Guess I will try to resize with vboxmanage next time.

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

No branches or pull requests

2 participants