[GH-ISSUE #638] ERRO[0168] error waiting for container: context canceled #478

Open
opened 2026-02-27 23:00:44 +03:00 by kerem · 1 comment
Owner

Originally created by @Anastusio on GitHub (Feb 24, 2023).
Original GitHub issue: https://github.com/sickcodes/Docker-OSX/issues/638

When I write the command

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

I get an error finished all downloads and pulls and I don't know why:

Digest: sha256:0a41097fb20312ffeb3b30f2489acf316eae3ec7d576d95aba96f35ee2680cb9
Status: Downloaded newer image for sickcodes/docker-osx:ventura
docker: Error response from daemon: error gathering device information while adding custom device "/dev/kvm": no such file or directory.
ERRO[0168] error waiting for container: context canceled
Originally created by @Anastusio on GitHub (Feb 24, 2023). Original GitHub issue: https://github.com/sickcodes/Docker-OSX/issues/638 When I write the command ``` 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 ``` I get an error finished all downloads and pulls and I don't know why: ``` Digest: sha256:0a41097fb20312ffeb3b30f2489acf316eae3ec7d576d95aba96f35ee2680cb9 Status: Downloaded newer image for sickcodes/docker-osx:ventura docker: Error response from daemon: error gathering device information while adding custom device "/dev/kvm": no such file or directory. ERRO[0168] error waiting for container: context canceled ```
Author
Owner

@PTAHume commented on GitHub (May 5, 2023):

did you intstall kvm ? you can check by running kvm-ok in wsl
also ensure you ran this sudo apt -y install bridge-utils cpu-checker libvirt-clients libvirt-daemon qemu qemu-kvm

<!-- gh-comment-id:1536868744 --> @PTAHume commented on GitHub (May 5, 2023): did you intstall kvm ? you can check by running ``` kvm-ok ``` in wsl also ensure you ran this ```sudo apt -y install bridge-utils cpu-checker libvirt-clients libvirt-daemon qemu qemu-kvm```
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/Docker-OSX#478
No description provided.