Virtual machine disk space in Docker for Windows beta

0 votes

In my old docker container, created with the docker toolbox on Windows 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 "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. Does anyone have a simple soln to this? Thanks in advance.

Oct 8, 2018 in Docker by Sophie may
• 10,620 points
1,216 views

1 answer to this question.

0 votes

The MobyLinux Hyper-V machine is provisioned on first start of docker on your computer.

There is no way to change the original 60GB size by configuration, how is stated inside the C:\Program Files\Docker\Docker\resources\MobyLinux.ps1 (powershell script):

# Hard coded for now

$global:VhdSize = 60*1024*1024*1024  # 60GB

So, the solution was to change this line to

$global:VhdSize = 120*1024*1024*1024  # 120GB

This worked for me. You need however to reset your docker, causing it to provision again the hyper-v machine.

answered Oct 8, 2018 by Tyrion anex
• 8,700 points

Related Questions In Docker

0 votes
2 answers
0 votes
1 answer
0 votes
1 answer
+2 votes
1 answer
+2 votes
1 answer

Deploy Docker Containers from Docker Cloud

To solve this problem, I followed advice ...READ MORE

answered Sep 3, 2018 in AWS by Priyaj
• 58,020 points
2,714 views
0 votes
1 answer

How to install telnet in Docker for Windows 10?

If you are trying to telnet in ...READ MORE

answered Aug 28, 2018 in Docker by Tyrion anex
• 8,700 points
3,466 views
0 votes
1 answer

How to save a Dynamic port in Docker for Windows?

The mapped ports can be accessed via ...READ MORE

answered Sep 4, 2018 in Docker by Tyrion anex
• 8,700 points
857 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP