Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to customize virtualbox configuration using docker-machine?

I am playing with docker-machine on my rough machine where I generally play with new things. I create a docker machine using the following command

docker-machine create --driver virtualbox dockerinwild  

and configure docker client to work with dockerinwild machine. Everything is working fine. But It takes all of my cpus and memory is low. How can I customize the virtualbox created by docker-machine?

like image 214
Nur Rony Avatar asked May 28 '15 06:05

Nur Rony


People also ask

Can I run VirtualBox in Docker?

🔗 Yes, you can run VirtualBox along with Docker Desktop if you have enabled the Windows Hypervisor Platform feature on your machine.

How does Docker machine manage virtual hosts that use Docker?

Docker machine is a tool that lets you install Docker Engine on virtual hosts. These hosts can now be managed using the docker-machine commands. Docker machine also lets you provision Docker Swarm Clusters.


1 Answers

I figure out how to customize it

docker-machine create --driver virtualbox --virtualbox-cpu-count 2 --virtualbox-memory "4096" --virtualbox-disk-size "10000" dockerinwild

Official documentation with full list of virtualbox driver options : https://docs.docker.com/machine/drivers/virtualbox/

like image 146
Nur Rony Avatar answered Nov 01 '22 10:11

Nur Rony