ERRO[0246] error waiting for container: context canceled #339

Closed
opened 2025-12-29 00:24:51 +01:00 by adam · 4 comments
Owner

Originally created by @unloopedmido on GitHub (Mar 18, 2022).

OS related issued, please help us identify the issue by posting the output of this

Full error log:

docker run -it \
    --device /dev/kvm \
    -p 50922:10022 \
    -v "${PWD}/mac_hdd_ng_auto.img:/image" \
    -v /tmp/.X11-unix:/tmp/.X11-unix \
    -e "DISPLAY=${DISPLAY:-:0.0}" \
    -e "USERNAME=user" \
    -e "PASSWORD=alpine" \
    -e GENERATE_UNIQUE=true \
    -e MASTER_PLIST_URL=https://raw.githubusercontent.com/sickcodes/Docker-OSX/master/custom/config-nopicker-custom.plist \
    sickcodes/docker-osx:naked-auto
docker: Error response from daemon: driver failed programming external connectivity on endpoint objective_albattani (e36842c0f657fb525d9236931b2cfbfc1cef5160952cf7e6ad53cd3133fc856c):  (iptables failed: iptables --wait -t nat -A DOCKER -p tcp -d 0/0 --dport idk-if-i-shall-show-this -j DNAT --to-destination idk-if-i-shall-show-this! -i docker0: iptables: No chain/target/match by that name.
 (exit status 1)).
ERRO[0000] error waiting for container: context canceled

uname -a
; echo "${DISPLAY}"
; echo 1 | sudo tee /sys/module/kvm/parameters/ignore_msrs
; grep NAME /etc/os-release
; df -h .
; qemu-system-x86_64 --version
; libvirtd --version
; free -mh
; nproc
; egrep -c '(svm|vmx)' /proc/cpuinfo
; ls -lha /dev/kvm
; ls -lha /tmp/.X11-unix/
; ps aux | grep dockerd
; docker ps | grep osx
; grep "docker|kvm|virt" /etc/group

Output:

PRETTY_NAME="Archcraft"
Filesystem      Size  Used Avail Use% Mounted on
/dev/sda5       288G   62G  212G  23% /
QEMU emulator version 6.2.0
Copyright (c) 2003-2021 Fabrice Bellard and the QEMU Project developers
libvirtd (libvirt) 8.1.0
               total        used        free      shared  buff/cache   available
Mem:            23Gi       1.6Gi       568Mi       565Mi        21Gi        20Gi
Swap:             0B          0B          0B
8
0
ls: cannot access '/dev/kvm': No such file or directory
total 0
drwxrwxrwt  2 root root  60 مارس   18  2022 .
drwxrwxrwt 13 root root 400 مارس   18 10:21 ..
srwxrwxrwx  1 root root   0 مارس   18  2022 X0
root        5027  5.8  0.4 2041996 101212 ?      Ssl  09:13   4:06 /usr/bin/dockerd -H fd://
mohammed   34944  0.0  0.0   6696  2568 pts/0    S+   10:23   0:00 grep --color=auto --exclude-dir=.bzr --exclude-dir=CVS --exclude-dir=.git --exclude-dir=.hg --exclude-dir=.svn --exclude-dir=.idea --exclude-dir=.tox dockerd
kvm:x:995:libvirt-qemu
libvirt:x:969:mohammed
libvirt-qemu:x:967:
docker:x:964:
Originally created by @unloopedmido on GitHub (Mar 18, 2022). # OS related issued, please help us identify the issue by posting the output of this Full error log: ``` docker run -it \ --device /dev/kvm \ -p 50922:10022 \ -v "${PWD}/mac_hdd_ng_auto.img:/image" \ -v /tmp/.X11-unix:/tmp/.X11-unix \ -e "DISPLAY=${DISPLAY:-:0.0}" \ -e "USERNAME=user" \ -e "PASSWORD=alpine" \ -e GENERATE_UNIQUE=true \ -e MASTER_PLIST_URL=https://raw.githubusercontent.com/sickcodes/Docker-OSX/master/custom/config-nopicker-custom.plist \ sickcodes/docker-osx:naked-auto docker: Error response from daemon: driver failed programming external connectivity on endpoint objective_albattani (e36842c0f657fb525d9236931b2cfbfc1cef5160952cf7e6ad53cd3133fc856c): (iptables failed: iptables --wait -t nat -A DOCKER -p tcp -d 0/0 --dport idk-if-i-shall-show-this -j DNAT --to-destination idk-if-i-shall-show-this! -i docker0: iptables: No chain/target/match by that name. (exit status 1)). ERRO[0000] error waiting for container: context canceled ``` uname -a \ ; echo "${DISPLAY}" \ ; echo 1 | sudo tee /sys/module/kvm/parameters/ignore_msrs \ ; grep NAME /etc/os-release \ ; df -h . \ ; qemu-system-x86_64 --version \ ; libvirtd --version \ ; free -mh \ ; nproc \ ; egrep -c '(svm|vmx)' /proc/cpuinfo \ ; ls -lha /dev/kvm \ ; ls -lha /tmp/.X11-unix/ \ ; ps aux | grep dockerd \ ; docker ps | grep osx \ ; grep "docker\|kvm\|virt" /etc/group Output: ```NAME="Archcraft" PRETTY_NAME="Archcraft" Filesystem Size Used Avail Use% Mounted on /dev/sda5 288G 62G 212G 23% / QEMU emulator version 6.2.0 Copyright (c) 2003-2021 Fabrice Bellard and the QEMU Project developers libvirtd (libvirt) 8.1.0 total used free shared buff/cache available Mem: 23Gi 1.6Gi 568Mi 565Mi 21Gi 20Gi Swap: 0B 0B 0B 8 0 ls: cannot access '/dev/kvm': No such file or directory total 0 drwxrwxrwt 2 root root 60 مارس 18 2022 . drwxrwxrwt 13 root root 400 مارس 18 10:21 .. srwxrwxrwx 1 root root 0 مارس 18 2022 X0 root 5027 5.8 0.4 2041996 101212 ? Ssl 09:13 4:06 /usr/bin/dockerd -H fd:// mohammed 34944 0.0 0.0 6696 2568 pts/0 S+ 10:23 0:00 grep --color=auto --exclude-dir=.bzr --exclude-dir=CVS --exclude-dir=.git --exclude-dir=.hg --exclude-dir=.svn --exclude-dir=.idea --exclude-dir=.tox dockerd kvm:x:995:libvirt-qemu libvirt:x:969:mohammed libvirt-qemu:x:967: docker:x:964: ```
adam closed this issue 2025-12-29 00:24:51 +01:00
Author
Owner

@mitchellkrogza commented on GitHub (Mar 30, 2022):

Same problem did you manage to find a fix?

@mitchellkrogza commented on GitHub (Mar 30, 2022): Same problem did you manage to find a fix?
Author
Owner

@yagiz-dev commented on GitHub (Aug 14, 2022):

Same problem on Manjaro Linux.

@yagiz-dev commented on GitHub (Aug 14, 2022): Same problem on Manjaro Linux.
Author
Owner

@yagiz-dev commented on GitHub (Aug 14, 2022):

Restarting the docker service solved the problem for me.

@yagiz-dev commented on GitHub (Aug 14, 2022): Restarting the docker service solved the problem for me.
Author
Owner

@keinou commented on GitHub (Nov 28, 2022):

Restarting the docker service solved the problem for me too

@keinou commented on GitHub (Nov 28, 2022): Restarting the docker service solved the problem for me too
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/Docker-OSX#339