Cannot run the docker again on Ubuntu 20.04 #342

Open
opened 2025-12-29 06:19:03 +01:00 by adam · 5 comments
Owner

Originally created by @cyrilfr on GitHub (Mar 25, 2022).

I ran this command on Ubuntu 20.04 in order to install macOS Monterey:

docker run -it \
    --device /dev/kvm \
    -p 50922:10022 \
    -v /tmp/.X11-unix:/tmp/.X11-unix \
    -e "DISPLAY=${DISPLAY:-:0.0}" \
    -e GENERATE_UNIQUE=true \
    -e MASTER_PLIST_URL='https://raw.githubusercontent.com/sickcodes/osx-serial-generator/master/config-custom.plist' \
    sickcodes/docker-osx:monterey

I installed macOS and shutdown the system.

Now that I want to run the Docker again, I get this error:

fatal: could not create work tree dir 'OpenCorePkg': No space left on device

I check the space left on my partition and I have 5GB left. When I ran the command for the first time, I had 100GB left!
How is that possible? How can I change de disk space allocated for macOS (I want 80GB only)?

Edit:
I tried to change SIZE in Dockerfile.monterey and to pass --build-arg SIZE=80G at build but nothing changes. The size remains at 256GB.

Originally created by @cyrilfr on GitHub (Mar 25, 2022). I ran this command on Ubuntu 20.04 in order to install macOS Monterey: ``` docker run -it \ --device /dev/kvm \ -p 50922:10022 \ -v /tmp/.X11-unix:/tmp/.X11-unix \ -e "DISPLAY=${DISPLAY:-:0.0}" \ -e GENERATE_UNIQUE=true \ -e MASTER_PLIST_URL='https://raw.githubusercontent.com/sickcodes/osx-serial-generator/master/config-custom.plist' \ sickcodes/docker-osx:monterey ``` I installed macOS and shutdown the system. Now that I want to run the Docker again, I get this error: `fatal: could not create work tree dir 'OpenCorePkg': No space left on device` I check the space left on my partition and I have 5GB left. When I ran the command for the first time, I had 100GB left! How is that possible? How can I change de disk space allocated for macOS (I want 80GB only)? **Edit:** I tried to change `SIZE` in Dockerfile.monterey and to pass `--build-arg SIZE=80G` at build but nothing changes. The size remains at 256GB.
Author
Owner

@slonopotamus commented on GitHub (May 3, 2022):

So what do you expect from this issue? That someone buys you a bigger storage?

@slonopotamus commented on GitHub (May 3, 2022): So what do you expect from this issue? That someone buys you a bigger storage?
Author
Owner

@cyrilfr commented on GitHub (May 4, 2022):

I expect that it just works...

In the meanwhile, I used another option. Thanks.

@cyrilfr commented on GitHub (May 4, 2022): I expect that it just works... In the meanwhile, I used another option. Thanks.
Author
Owner

@ilyakatz commented on GitHub (Jan 6, 2023):

@cyrilfr which option did you use? i also run into this issue and it's not my hardware, i have gigabytes of extra space

@ilyakatz commented on GitHub (Jan 6, 2023): @cyrilfr which option did you use? i also run into this issue and it's not my hardware, i have gigabytes of extra space
Author
Owner

@cyrilfr commented on GitHub (Jan 6, 2023):

@ilyakatz I decided to directly use https://github.com/kholia/OSX-KVM

@cyrilfr commented on GitHub (Jan 6, 2023): @ilyakatz I decided to directly use https://github.com/kholia/OSX-KVM
Author
Owner

@ilyakatz commented on GitHub (Jan 11, 2023):

thanks @cyrilfr that worked! Looks like it's a pretty common problem, here is how to resolve it to those who want a real answer https://github.com/foxlet/macOS-Simple-KVM/issues/272, but can't use this project at the moment

@ilyakatz commented on GitHub (Jan 11, 2023): thanks @cyrilfr that worked! Looks like it's a pretty common problem, here is how to resolve it to those who want a real answer https://github.com/foxlet/macOS-Simple-KVM/issues/272, but can't use this project at the moment
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/Docker-OSX-sickcodes#342