user1760543
user1760543

Reputation:

How can ichange a virtualbox configuration using docker-machine

Hi I have created a virtual box with certain params (number of cpus memory etc), can I change those settings anywhere without having to re-create the VM ? If I use docker-machine create then I'm going to have to re-do eveything in that image again.

Upvotes: 2

Views: 327

Answers (2)

Andy
Andy

Reputation: 5414

Docker machines stores the configuration under

~/.docker/machine/machines/default/config.json

You can edit the file manually and restart the vm to apply the changes.

E.g.

If you want to increase the base memory from 1 GB to 2 GB, change "Memory":1024 into "Memory":2048

After you make the changes, save the file and restart the docker machine using.

docker-machine restart <machine-name>

Upvotes: 0

Rico
Rico

Reputation: 61689

Yeah you can. Just load up the UI and you'll see your docker machine VM.

Change memory, add storage, change CPUs, etc. You need to make sure your VM is not running when you make any config changes.

VBox

Upvotes: 2

Related Questions