The Wayback Machine - https://web.archive.org/web/20220615204614/https://github.com/sickcodes/Docker-OSX/issues/197
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Increase RAM after creating container #197

Closed
marcocastignoli opened this issue Mar 15, 2021 · 7 comments · Fixed by #206
Closed

Increase RAM after creating container #197

marcocastignoli opened this issue Mar 15, 2021 · 7 comments · Fixed by #206

Comments

@marcocastignoli
Copy link

@marcocastignoli marcocastignoli commented Mar 15, 2021

Is it possible to increase RAM of an existing container?

@sickcodes
Copy link
Owner

@sickcodes sickcodes commented Mar 16, 2021

Yes take the image out and use :naked

@marcocastignoli
Copy link
Author

@marcocastignoli marcocastignoli commented Mar 16, 2021

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

@marcocastignoli
Copy link
Author

@marcocastignoli marcocastignoli commented Mar 16, 2021

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)

@sickcodes
Copy link
Owner

@sickcodes sickcodes commented Mar 17, 2021

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

@marcocastignoli
Copy link
Author

@marcocastignoli marcocastignoli commented Mar 17, 2021

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

@mchemweno
Copy link

@mchemweno mchemweno commented Jun 11, 2021

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

@catleeball
Copy link

@catleeball catleeball commented Sep 13, 2021

@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) ./

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants