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
• 9,050 points

1 answer to this question.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
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,280 points

Related Questions In Docker

0 votes
1 answer
0 votes
1 answer
0 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
• 56,120 points
0 votes
1 answer

How to install telnet in Docker for Windows 10?

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

answered Aug 27, 2018 in Docker by Tyrion anex
• 8,280 points
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,280 points

© 2018 Brain4ce Education Solutions Pvt. Ltd. All rights Reserved.
"PMP®","PMI®", "PMI-ACP®" and "PMBOK®" are registered marks of the Project Management Institute, Inc. MongoDB®, Mongo and the leaf logo are the registered trademarks of MongoDB, Inc.