docker does not run ventura command #438

Closed
opened 2025-12-29 01:18:58 +01:00 by adam · 6 comments
Owner

Originally created by @superbonaci on GitHub (Dec 7, 2022).

On Arch:

$ sudo pacman -Suy docker
:: Synchronizing package databases...
 core is up to date
 extra is up to date
 community is up to date
 multilib is up to date
:: Starting full system upgrade...
resolving dependencies...
looking for conflicting packages...

Packages (3) containerd-1.6.10-1  runc-1.1.4-1  docker-1:20.10.21-1

Total Download Size:    54.43 MiB
Total Installed Size:  237.83 MiB

:: Proceed with installation? [Y/n] y

Then try to run it:

$ 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:ventura
docker: unknown server OS: .
See 'docker run --help'.
Originally created by @superbonaci on GitHub (Dec 7, 2022). On Arch: ``` $ sudo pacman -Suy docker :: Synchronizing package databases... core is up to date extra is up to date community is up to date multilib is up to date :: Starting full system upgrade... resolving dependencies... looking for conflicting packages... Packages (3) containerd-1.6.10-1 runc-1.1.4-1 docker-1:20.10.21-1 Total Download Size: 54.43 MiB Total Installed Size: 237.83 MiB :: Proceed with installation? [Y/n] y ``` Then try to run it: ``` $ 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:ventura docker: unknown server OS: . See 'docker run --help'. ```
adam closed this issue 2025-12-29 01:18:59 +01:00
Author
Owner

@dkornahrens commented on GitHub (Dec 8, 2022):

Same mileage.

Edit: I didn't read. https://github.com/sickcodes/Docker-OSX#initial-setup

@dkornahrens commented on GitHub (Dec 8, 2022): Same mileage. Edit: I didn't read. https://github.com/sickcodes/Docker-OSX#initial-setup
Author
Owner

@superbonaci commented on GitHub (Dec 8, 2022):

@dkornahrens does work with you after initial setup or still same issue?

@superbonaci commented on GitHub (Dec 8, 2022): @dkornahrens does work with you after initial setup or still same issue?
Author
Owner

@Badirkhanov commented on GitHub (Jan 13, 2023):

This helped me: https://github.com/sickcodes/Docker-OSX#docker-unknown-server-os-error

@Badirkhanov commented on GitHub (Jan 13, 2023): This helped me: https://github.com/sickcodes/Docker-OSX#docker-unknown-server-os-error
Author
Owner

@tautomer commented on GitHub (Sep 24, 2025):

For me it was a permission issue with /var/run/docerk.sock. If you run docker ps, you will see this error, but docker run somehow suppresses the real error behind the failure.
Solved by

sudo usermod -aG docker $USER
newgrp docker
@tautomer commented on GitHub (Sep 24, 2025): For me it was a permission issue with `/var/run/docerk.sock`. If you run `docker ps`, you will see this error, but `docker run` somehow suppresses the real error behind the failure. Solved by ```shell sudo usermod -aG docker $USER newgrp docker ```
Author
Owner

@superbonaci commented on GitHub (Sep 24, 2025):

Updated to docker-1:28.4.0-1.

Fixed running this:

sudo systemctl enable --now docker
sudo usermod -aG docker "$USER"
sudo usermod -aG kvm "$USER"
newgrp docker
xhost +si:localuser:$USER

Now the info should be available:

$ docker info 
Client:
 Version:    28.4.0
 Context:    default
 Debug Mode: false

Server:
 Containers: 0
  Running: 0
  Paused: 0
  Stopped: 0
 Images: 0
 Server Version: 28.4.0
 Storage Driver: overlay2
  Backing Filesystem: extfs
  Supports d_type: true
  Using metacopy: true
  Native Overlay Diff: false
  userxattr: false
 Logging Driver: json-file
 Cgroup Driver: systemd
 Cgroup Version: 2
 Plugins:
  Volume: local
  Network: bridge host ipvlan macvlan null overlay
  Log: awslogs fluentd gcplogs gelf journald json-file local splunk syslog
 CDI spec directories:
  /etc/cdi
  /var/run/cdi
 Swarm: inactive
 Runtimes: io.containerd.runc.v2 runc
 Default Runtime: runc
 Init Binary: docker-init
 containerd version: 75cb2b7193e4e490e9fbdc236c0e811ccaba3376.m
 runc version: 
 init version: de40ad0
 Security Options:
  seccomp
   Profile: builtin
  cgroupns
 Kernel Version: 6.12.48-1-lts
 Operating System: Arch Linux
 OSType: linux
 Architecture: x86_64
 CPUs: 32
 Total Memory: 32.24GiB
 Name: arch
 ID: d70cb2cc-630b-4007-a101-038fff957eeb
 Docker Root Dir: /var/lib/docker
 Debug Mode: false
 Experimental: false
 Insecure Registries:
  ::1/128
  127.0.0.0/8
 Live Restore Enabled: false

Hello world should work:

$ docker run --rm hello-world
Unable to find image 'hello-world:latest' locally
latest: Pulling from library/hello-world
17eec7bbc9d7: Pull complete 
Digest: sha256:54e66cc1dd1fcb1c3c58bd8017914dbed8701e2d8c74d9262e26bd9cc1642d31
Status: Downloaded newer image for hello-world:latest

Hello from Docker!
This message shows that your installation appears to be working correctly.

To generate this message, Docker took the following steps:
 1. The Docker client contacted the Docker daemon.
 2. The Docker daemon pulled the "hello-world" image from the Docker Hub.
    (amd64)
 3. The Docker daemon created a new container from that image which runs the
    executable that produces the output you are currently reading.
 4. The Docker daemon streamed that output to the Docker client, which sent it
    to your terminal.

To try something more ambitious, you can run an Ubuntu container with:
 $ docker run -it ubuntu bash

Share images, automate workflows, and more with a free Docker ID:
 https://hub.docker.com/

For more examples and ideas, visit:
 https://docs.docker.com/get-started/

/dev/kvm must exist:

$ ls -l /dev/kvm
crw-rw-rw- 1 root kvm 10, 232 Jan 24 10:53 /dev/kvm

ventura does not work this way:

$ 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:ventura
Unable to find image 'sickcodes/docker-osx:ventura' locally
docker: Error response from daemon: manifest for sickcodes/docker-osx:ventura not found: manifest unknown: manifest unknown

Run 'docker run --help' for more information

Has to be called this way:

$ docker run -it \
  --device /dev/kvm \
  -p 50922:10022 \
  -v /tmp/.X11-unix:/tmp/.X11-unix \
  -e "DISPLAY=${DISPLAY:-:0.0}" \
  -e SHORTNAME=ventura \
  -e GENERATE_UNIQUE=true \
  -e MASTER_PLIST_URL='https://raw.githubusercontent.com/sickcodes/osx-serial-generator/master/config-custom.plist' \
  sickcodes/docker-osx:latest
Unable to find image 'sickcodes/docker-osx:latest' locally
latest: Pulling from sickcodes/docker-osx
9eba33a123ff: Pull complete 
8a033bf9719d: Pull complete 
e699f0a07cc6: Pull complete 
39e7df653bc1: Pull complete 
ff8b9152da56: Pull complete 
4f4fb700ef54: Pull complete 
77a42386edf8: Pull complete 
1621a50294eb: Pull complete 
79f83dd34aab: Pull complete 
51a9cbf8f514: Pull complete 
36cd4ac5053a: Pull complete 
2f28bee5afd2: Pull complete 
dc20b1e9aa29: Pull complete 
783d2912ea29: Pull complete 
492e8200f1dc: Pull complete 
b5e599dcaeff: Pull complete 
9ecf96c5cfc9: Pull complete 
e8465977a09e: Pull complete 
c314b3cdf22b: Pull complete 
2f6c3e117223: Pull complete 
40be3ca3595a: Pull complete 
Digest: sha256:d5ef4096ed66499df3841a06fec3bd310c23b34478f2553302a1ac5db61c766f
Status: Downloaded newer image for sickcodes/docker-osx:latest
No BaseSystem.img available, downloading ventura
./fetch-macOS-v2.py --shortname=ventura
1. High Sierra (10.13)
2. Mojave (10.14)
3. Catalina (10.15)
4. Big Sur (11.7)
5. Monterey (12.6)
6. Ventura (13)
7. Sonoma (14)  - RECOMMENDED
8. Sequoia (15) 
Downloading 042-23155...
Saving http://oscdn.apple.com/content/downloads/28/14/042-23155/4rscm4lvp3084gutfgpkwj5eex0yyxmzkt/RecoveryImage/BaseSystem.chunklist to ./BaseSystem.chunklist...
0.0/0.0 MB |==============================================================================| 100.0% downloaded                                                                                                                             
Download complete!
Saving http://oscdn.apple.com/content/downloads/28/14/042-23155/4rscm4lvp3084gutfgpkwj5eex0yyxmzkt/RecoveryImage/BaseSystem.dmg to ./BaseSystem.dmg...
678.0/678.0 MB |==============================================================================| 100.0% downloaded                                                                                                                         
Download complete!
Verifying image with chunklist...
Chunk 68 (8372977 bytes)                                                                                                                                                                                                                  
Image verification complete!
qemu-img convert BaseSystem.dmg -O raw BaseSystem.img
qemu-img create -f qcow2 mac_hdd_ng.img 256G
Formatting 'mac_hdd_ng.img', fmt=qcow2 cluster_size=65536 extended_l2=off compression_type=zlib size=274877906944 lazy_refcounts=off refcount_bits=16
    (100.00/100%)
@superbonaci commented on GitHub (Sep 24, 2025): Updated to `docker-1:28.4.0-1`. Fixed running this: ``` sudo systemctl enable --now docker sudo usermod -aG docker "$USER" sudo usermod -aG kvm "$USER" newgrp docker xhost +si:localuser:$USER ``` Now the info should be available: ``` $ docker info Client: Version: 28.4.0 Context: default Debug Mode: false Server: Containers: 0 Running: 0 Paused: 0 Stopped: 0 Images: 0 Server Version: 28.4.0 Storage Driver: overlay2 Backing Filesystem: extfs Supports d_type: true Using metacopy: true Native Overlay Diff: false userxattr: false Logging Driver: json-file Cgroup Driver: systemd Cgroup Version: 2 Plugins: Volume: local Network: bridge host ipvlan macvlan null overlay Log: awslogs fluentd gcplogs gelf journald json-file local splunk syslog CDI spec directories: /etc/cdi /var/run/cdi Swarm: inactive Runtimes: io.containerd.runc.v2 runc Default Runtime: runc Init Binary: docker-init containerd version: 75cb2b7193e4e490e9fbdc236c0e811ccaba3376.m runc version: init version: de40ad0 Security Options: seccomp Profile: builtin cgroupns Kernel Version: 6.12.48-1-lts Operating System: Arch Linux OSType: linux Architecture: x86_64 CPUs: 32 Total Memory: 32.24GiB Name: arch ID: d70cb2cc-630b-4007-a101-038fff957eeb Docker Root Dir: /var/lib/docker Debug Mode: false Experimental: false Insecure Registries: ::1/128 127.0.0.0/8 Live Restore Enabled: false ``` Hello world should work: ``` $ docker run --rm hello-world Unable to find image 'hello-world:latest' locally latest: Pulling from library/hello-world 17eec7bbc9d7: Pull complete Digest: sha256:54e66cc1dd1fcb1c3c58bd8017914dbed8701e2d8c74d9262e26bd9cc1642d31 Status: Downloaded newer image for hello-world:latest Hello from Docker! This message shows that your installation appears to be working correctly. To generate this message, Docker took the following steps: 1. The Docker client contacted the Docker daemon. 2. The Docker daemon pulled the "hello-world" image from the Docker Hub. (amd64) 3. The Docker daemon created a new container from that image which runs the executable that produces the output you are currently reading. 4. The Docker daemon streamed that output to the Docker client, which sent it to your terminal. To try something more ambitious, you can run an Ubuntu container with: $ docker run -it ubuntu bash Share images, automate workflows, and more with a free Docker ID: https://hub.docker.com/ For more examples and ideas, visit: https://docs.docker.com/get-started/ ``` /dev/kvm must exist: ``` $ ls -l /dev/kvm crw-rw-rw- 1 root kvm 10, 232 Jan 24 10:53 /dev/kvm ``` ventura does not work this way: ``` $ 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:ventura Unable to find image 'sickcodes/docker-osx:ventura' locally docker: Error response from daemon: manifest for sickcodes/docker-osx:ventura not found: manifest unknown: manifest unknown Run 'docker run --help' for more information ``` Has to be called this way: ``` $ docker run -it \ --device /dev/kvm \ -p 50922:10022 \ -v /tmp/.X11-unix:/tmp/.X11-unix \ -e "DISPLAY=${DISPLAY:-:0.0}" \ -e SHORTNAME=ventura \ -e GENERATE_UNIQUE=true \ -e MASTER_PLIST_URL='https://raw.githubusercontent.com/sickcodes/osx-serial-generator/master/config-custom.plist' \ sickcodes/docker-osx:latest Unable to find image 'sickcodes/docker-osx:latest' locally latest: Pulling from sickcodes/docker-osx 9eba33a123ff: Pull complete 8a033bf9719d: Pull complete e699f0a07cc6: Pull complete 39e7df653bc1: Pull complete ff8b9152da56: Pull complete 4f4fb700ef54: Pull complete 77a42386edf8: Pull complete 1621a50294eb: Pull complete 79f83dd34aab: Pull complete 51a9cbf8f514: Pull complete 36cd4ac5053a: Pull complete 2f28bee5afd2: Pull complete dc20b1e9aa29: Pull complete 783d2912ea29: Pull complete 492e8200f1dc: Pull complete b5e599dcaeff: Pull complete 9ecf96c5cfc9: Pull complete e8465977a09e: Pull complete c314b3cdf22b: Pull complete 2f6c3e117223: Pull complete 40be3ca3595a: Pull complete Digest: sha256:d5ef4096ed66499df3841a06fec3bd310c23b34478f2553302a1ac5db61c766f Status: Downloaded newer image for sickcodes/docker-osx:latest No BaseSystem.img available, downloading ventura ./fetch-macOS-v2.py --shortname=ventura 1. High Sierra (10.13) 2. Mojave (10.14) 3. Catalina (10.15) 4. Big Sur (11.7) 5. Monterey (12.6) 6. Ventura (13) 7. Sonoma (14) - RECOMMENDED 8. Sequoia (15) Downloading 042-23155... Saving http://oscdn.apple.com/content/downloads/28/14/042-23155/4rscm4lvp3084gutfgpkwj5eex0yyxmzkt/RecoveryImage/BaseSystem.chunklist to ./BaseSystem.chunklist... 0.0/0.0 MB |==============================================================================| 100.0% downloaded Download complete! Saving http://oscdn.apple.com/content/downloads/28/14/042-23155/4rscm4lvp3084gutfgpkwj5eex0yyxmzkt/RecoveryImage/BaseSystem.dmg to ./BaseSystem.dmg... 678.0/678.0 MB |==============================================================================| 100.0% downloaded Download complete! Verifying image with chunklist... Chunk 68 (8372977 bytes) Image verification complete! qemu-img convert BaseSystem.dmg -O raw BaseSystem.img qemu-img create -f qcow2 mac_hdd_ng.img 256G Formatting 'mac_hdd_ng.img', fmt=qcow2 cluster_size=65536 extended_l2=off compression_type=zlib size=274877906944 lazy_refcounts=off refcount_bits=16 (100.00/100%) ```
Author
Owner

@superbonaci commented on GitHub (Sep 24, 2025):

I'm going to close this issue since works for me. Please comment to reopen if anyone else still has issues.

@superbonaci commented on GitHub (Sep 24, 2025): I'm going to close this issue since works for me. Please comment to reopen if anyone else still has issues.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/Docker-OSX#438