Skip to content

Can this container be run using Docker Desktop? #276

@happybeing

Description

@happybeing

Operating system

Ubuntu 24.04

Description

I had successfully run this using the CLI as in:
docker run -it --rm --name macos -p 8006:8006 --device=/dev/kvm --device=/dev/net/tun --cap-add NET_ADMIN -v "${PWD:-.}/macos:/storage" --stop-timeout 120 dockurr/macos

I then installed Docker Desktop to try using that but when I run there it gives several errors related to /dev/kvm, suggests adding --cap-add NET_ADMIN etc and I don't see how I can effect all the fixes for these using DD. Full DD output included under logs below.

Should I get rid of DD? I don't seem able to use the above CLI now, so looks like I have to use DD or CLI and can't easily switch.

Thanks

Docker compose

docker run -it --rm --name macos -p 8006:8006 --device=/dev/kvm --device=/dev/net/tun --cap-add NET_ADMIN -v "${PWD:-.}/macos:/storage" --stop-timeout 120 dockurr/macos

Docker log

2025-07-23 11:37:34.780 | ❯ Starting macOS for Docker v2.14...
2025-07-23 11:37:34.781 | ❯ For support visit https://github.com/dockur/macos
2025-07-23 11:37:34.928 | ❯ CPU: Intel Core i9 14900HX | RAM: 7/8 GB | DISK: 1 TB (ext4) | KERNEL: 6.10.14-linuxkit...
2025-07-23 11:37:34.928 | 
2025-07-23 11:37:35.004 | ❯ Downloading macOS 13 recovery image...
2025-07-23 11:37:39.363 | 
2025-07-23 11:38:13.575 |      0K ........ ........ ........ ........  4%  927K 11m53s
2025-07-23 11:38:51.455 |  32768K ........ ........ ........ ........  9%  867K 11m42s
2025-07-23 11:39:25.469 |  65536K ........ ........ ........ ........ 14%  963K 10m50s
2025-07-23 11:39:57.975 |  98304K ........ ........ ........ ........ 18% 1009K 10m0s
2025-07-23 11:40:37.778 | 131072K ........ ........ ........ ........ 23%  820K 9m42s
2025-07-23 11:41:09.911 | 163840K ........ ........ ........ ........ 28% 1.00M 8m56s
2025-07-23 11:41:41.449 | 196608K ........ ........ ........ ........ 33% 1.01M 8m13s
2025-07-23 11:42:12.340 | 229376K ........ ........ ........ ........ 37% 1.03M 7m32s
2025-07-23 11:42:44.855 | 262144K ........ ........ ........ ........ 42% 1017K 6m55s
2025-07-23 11:43:15.538 | 294912K ........ ........ ........ ........ 47% 1.03M 6m17s
2025-07-23 11:43:46.224 | 327680K ........ ........ ........ ........ 51% 1.05M 5m41s
2025-07-23 11:44:19.788 | 360448K ........ ........ ........ ........ 56%  991K 5m7s
2025-07-23 11:44:54.772 | 393216K ........ ........ ........ ........ 61%  926K 4m35s
2025-07-23 11:45:32.638 | 425984K ........ ........ ........ ........ 66%  881K 4m3s
2025-07-23 11:46:15.646 | 458752K ........ ........ ........ ........ 70%  750K 3m33s
2025-07-23 11:46:54.341 | 491520K ........ ........ ........ ........ 75%  845K 3m0s
2025-07-23 11:47:57.014 | 524288K ........ ........ ........ ........ 80%  539K 2m32s
2025-07-23 11:48:41.602 | 557056K ........ ........ ........ ........ 84%  707K 1m57s
2025-07-23 11:49:16.255 | 589824K ........ ........ ........ ........ 89%  938K 80s
2025-07-23 11:49:53.270 | 622592K ........ ........ ........ ........ 94%  887K 44s
2025-07-23 11:50:26.551 | 655360K ........ ........ ........ ........ 99%  993K 7s
2025-07-23 11:50:32.951 | 688128K .....                              100%  812K=12m56s
2025-07-23 11:50:32.951 | 
2025-07-23 11:50:33.739 | ❯ Creating a 64 GB growable disk image in raw format...
2025-07-23 11:50:33.802 | RTNETLINK answers: Operation not permitted
2025-07-23 11:50:33.802 | ❯ ERROR: Failed to create bridge. Please add the following setting to your container: --cap-add NET_ADMIN
2025-07-23 11:50:33.809 | ❯ Warning: an error occured, falling back to user-mode networking!
2025-07-23 11:50:33.809 | ❯ Notice: port mapping will not work without "USER_PORTS" now.
2025-07-23 11:50:33.835 | ❯ Building boot image...
2025-07-23 11:50:34.964 | ❯ 
2025-07-23 11:50:34.964 | ❯ Model: iMacPro1,1
2025-07-23 11:50:34.964 | ❯ Rom: 0016cb1ec715
2025-07-23 11:50:34.964 | ❯ Serial: C02WD0J2HX87
2025-07-23 11:50:34.964 | ❯ Board: C02810101GUJG368C
2025-07-23 11:50:34.964 | ❯ 
2025-07-23 11:50:34.969 | ❯ Warning: Nested KVM virtualization detected, this might cause issues running macOS!
2025-07-23 11:50:34.971 | ❯ ERROR: KVM acceleration is not available (/dev/kvm is missing), this will cause a major loss of performance.
2025-07-23 11:50:34.971 | ❯ ERROR: See the FAQ for possible causes, or continue without it by adding KVM: "N" (not recommended).
2025-07-23 11:52:11.425 | ❯ Starting macOS for Docker v2.14...
2025-07-23 11:52:11.425 | ❯ For support visit https://github.com/dockur/macos
2025-07-23 11:52:11.527 | ❯ CPU: Intel Core i9 14900HX | RAM: 7/8 GB | DISK: 1 TB (ext4) | KERNEL: 6.10.14-linuxkit...
2025-07-23 11:52:11.527 | 
2025-07-23 11:52:11.602 | RTNETLINK answers: Operation not permitted
2025-07-23 11:52:11.602 | ❯ ERROR: Failed to create bridge. Please add the following setting to your container: --cap-add NET_ADMIN
2025-07-23 11:52:11.610 | ❯ Warning: an error occured, falling back to user-mode networking!
2025-07-23 11:52:11.610 | ❯ Notice: port mapping will not work without "USER_PORTS" now.
2025-07-23 11:52:11.621 | ❯ Building boot image...
2025-07-23 11:52:12.040 | ❯ 
2025-07-23 11:52:12.040 | ❯ Model: iMacPro1,1
2025-07-23 11:52:12.040 | ❯ Rom: 0016cb1ec715
2025-07-23 11:52:12.040 | ❯ Serial: C02WD0J2HX87
2025-07-23 11:52:12.040 | ❯ Board: C02810101GUJG368C
2025-07-23 11:52:12.040 | ❯ 
2025-07-23 11:52:12.046 | ❯ Warning: Nested KVM virtualization detected, this might cause issues running macOS!
2025-07-23 11:52:12.047 | ❯ ERROR: KVM acceleration is not available (/dev/kvm is missing), this will cause a major loss of performance.
2025-07-23 11:52:12.047 | ❯ ERROR: See the FAQ for possible causes, or continue without it by adding KVM: "N" (not recommended).

Screenshots (optional)

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions