Docker Community Forums

Share and learn in the Docker community.

Virtual machine disk space

docker
beta

(Jaroslavlibal) #1

Expected behavior

I would like to be able to create the default environment with more disk space available for virtual machine created with Docker 1.12.0 beta18, but dont know how.

Actual behavior

In my old docker I was able to use the
docker-machine create -d virtualbox --virtualbox-disk-size 50000 default
command to create the container with more disk space as I have big images stored in it and/or “create another environment” next to the default.

Since the upgrade to the Docker 1.12.0 beta18 from the old Docker Toolbox I have no idea how to do that and I am facing the “low disk space” problem.

Is there any chance to change that, please?


(Matteo Giordano) #2

I have fixed a “No space left on device” error in a postgres container by adding

"storage-opts": [
  "dm.basesize=50G"
]

to the docker daemon configuration file.


(Michael Friis) #3

We have a tracking issue to improve this - stay tuned.


#4

Hey folks, is there any update/progress concerning this issue?

I didn’t try it for now, but this seems to be a dirty workaround for the moment: http://stackoverflow.com/a/39153789/4413057


(Michael Friis) #5

You can track progress here: https://github.com/docker/for-win/issues/105


#6

Hi. I instaled DockerTool in the Win8.1 and received on the virtual machine 20 GB of an empty seat on a disk with the .vmdk expansion. I need at least 60 GB for a container. the VirtualBox is have
not enough means to increase a disk. if expansion was VDI, the problem would not arise. who made it that the disk is created with such expansion? what can you offer me for a solution? have any ideas?