Open vochicong opened 5 years ago
I work with datalab a ton, and this is kind of a gripe for me too. I typically save my data files, models, and other artifacts in my /tmp folder from within the datalab instance. However, sometimes I need to install system packages or extra python packages and notice I routinely run up against the /mnt/stateful_partition (Which I believe is the "/" directory in datalab). Is there any easy way to set the option for how large the /mnt/stateful_partition should be in the datalab instance? I can change the disk size of the datalab instance in the create command, but this does nothing for the /mnt/stateful_partition folder size.
In my Datalab docker container, after installation of some apt, conda and pip packages, the root disk
/
gets full, then Datalab freezes.Steps to reproduce
Use mylab in the browser, it works as expected
Get into docker container mylab, install somethings like
Note that
/mnt/stateful_partition
is getting full. If I install more packages, it will eventually get full and the Datalab container freezes. The Docker service will stop doesn't start even after rebooting the VM mylab.Temporary solution
/mnt/stateful_partition/var/lib/docker/overlay2/
.datalab connect mylab
, wait until datalab is available (the container has started)docker system prune
.