sickcodes / Docker-OSX

Run macOS VM in a Docker! Run near native OSX-KVM in Docker! X11 Forwarding! CI/CD for OS X Security Research! Docker mac Containers.

Home Page:https://hub.docker.com/r/sickcodes/docker-osx

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Increase RAM after creating container

marcocastignoli opened this issue · comments

Is it possible to increase RAM of an existing container?

Yes take the image out and use :naked

I saw the small section in the readme saying quite the same thing. But it's not clear what you it means to "take the image out". Thanks for your patience

I just found what you mean... I suggest you to insert a link to the section "Backup the disk (Where's my disk?)" in the section "Start the same container later (persistent disk)" (if it makes sense)

Will provide instructions shortly! Did you work it out regardless?

I reacreated the container before you replied 👍 very fast, so no problem man. Great work!

Can you please help with the instructions about 'taking an image out'

@mchemweno : It looks like this is mentioned in the Container creation part of the docs.

Briefly, it looks something like this:

$ docker pull sickcodes/docker-osx:auto
[...]
Status: Downloaded newer image for sickcodes/docker-osx:auto
docker.io/sickcodes/docker-osx:auto

$ sudo find /var/lib/docker -size +10G | grep mac_hdd_ng.img | head -n 1
/var/lib/docker/overlay2/43736bffc5990b2c44e61c30110414b00389d18419638b1ccae1acf42df034a4/diff/home/arch/OSX-KVM/mac_hdd_ng.img

$ cp /var/lib/docker/overlay2/43736bffc5990b2c44e61c30110414b00389d18419638b1ccae1acf42df034a4/diff/home/arch/OSX-KVM/mac_hdd_ng.img ./

or in one line with something like this maybe:

$  docker pull sickcodes/docker-osx:auto && cp $(sudo find /var/lib/docker -size +10G | grep mac_hdd_ng.img | head -n 1) ./

Leaving the solution here as it was hard for me to find: #199 (reply in thread)