Boot2docker: Increase virtual box memory on windows environment

Created on 23 Jun 2017  路  3Comments  路  Source: boot2docker/boot2docker

I'm trying to change the virtual box memory each time the dockerfile is built using the following commands in the dockerfile:

docker-machine stop
VBoxManage modifyvm default --cpus 2
VBoxManage modifyvm default --memory 4096
docker-machine start

docker-machine command is not recognized. How do I go about doing this on windows environment?

question

Most helpful comment

The easiest way.
open VirtualBox stop default VM
Select default and click on settings
Make changes As you want.
Launch your Docker Quickstart Terminal.

All 3 comments

If you installed boot2docker with docker-toolbox, then it should be in the path when you run the "Docker Quickstart terminal" (instead of cmd or Powershell).

I'm trying to change the virtual box memory each time the dockerfile is built using the following commands in the dockerfile:

docker-machine stop
VBoxManage modifyvm default --cpus 2
VBoxManage modifyvm default --memory 4096
docker-machine start

docker-machine command is not recognized. How do I go about doing this on windows environment?

You're great ~

The easiest way.
open VirtualBox stop default VM
Select default and click on settings
Make changes As you want.
Launch your Docker Quickstart Terminal.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

tianon picture tianon  路  8Comments

TomKeur picture TomKeur  路  5Comments

linux-china picture linux-china  路  15Comments

ovidiubuligan picture ovidiubuligan  路  7Comments

pheuter picture pheuter  路  7Comments