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 · 8 comments · Fixed by #206
Closed

Increase RAM after creating container #197

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

Comments

@marcocastignoli
Copy link

Is it possible to increase RAM of an existing container?

@sickcodes
Copy link
Owner

Yes take the image out and use :naked

@marcocastignoli
Copy link
Author

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

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

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

@marcocastignoli
Copy link
Author

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

@mchemweno
Copy link

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

@catleeball
Copy link

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

@gustavotoyota
Copy link

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

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.

5 participants