docker - Change boot2docker memory assignment -
i've been playing around docker on mac need install boot2docker make work.
i have pretty powerful machine , resource hungry app want available memory default 1gb 8gb.
this i've tried
booting boot2dock --memory param
boot2docker --memory=8116 boot
change config file
verbose = true vbm = "vboxmanage" ssh = "ssh" sshgen = "ssh-keygen" sshkey = "/users/mjsilva/.ssh/id_boot2docker" vm = "boot2docker-vm" dir = "/users/mjsilva/.boot2docker" iso = "/users/mjsilva/.boot2docker/boot2docker.iso" vmdk = "" disksize = 20000 memory = 8116 sshport = 2022 dockerport = 2375 hostip = "192.168.59.3" dhcpip = "192.168.59.99" netmask = [255, 255, 255, 0] lowerip = "192.168.59.103" upperip = "192.168.59.254" dhcpenabled = true serial = false serialfile = "/users/mjsilva/.boot2docker/boot2docker-vm.sock"
and booting boot2docker
boot2docker boot
none of approaches seem work. end having default memory.
the way manage change going virtualbox gui shutdown boot2docker, change manually , boot again.
am missing something?
you need re-initialize boot2docker vm new memory settings:
$ boot2docker delete $ boot2docker init -m 5555 ... lots of output ... $ boot2docker info { ... "memory":5555 ...}
you can boot2docker up
, image use configured amount of memory.
Comments
Post a Comment