help me #509

Open
opened 2025-12-29 06:20:43 +01:00 by adam · 1 comment
Owner

Originally created by @nanoalto on GitHub (Jul 1, 2023).

after the download of the sistem (catalina preinstalled) and run it do this error: /usr/sbin/ssh-copy-id: INFO: Source of key(s) to be installed: "/home/arch/.ssh/id_docker_osx.pub"
ssh: connect to host 127.0.0.1 port 10022: Connection refused
Disk is being copied between layers. Repeating until able to copy SSH key into OSX...
and it does so endlessly

Originally created by @nanoalto on GitHub (Jul 1, 2023). after the download of the sistem (catalina preinstalled) and run it do this error: /usr/sbin/ssh-copy-id: INFO: Source of key(s) to be installed: "/home/arch/.ssh/id_docker_osx.pub" ssh: connect to host 127.0.0.1 port 10022: Connection refused Disk is being copied between layers. Repeating until able to copy SSH key into OSX... and it does so endlessly
Author
Owner

@AldenIsMe commented on GitHub (Sep 9, 2023):

I just managed to fix this issues after about 2-3 hours of debugging and trying different things.

I'm currently running Windows 11 and had the same issue, I fixed it by:

Downloading Ubuntu WSL (via the Windows Store)
Ran these commnads to download xhost on wsl:

sudo apt install x11-apps -y
sudo apt install x11-xserver-utils -y
sudo apt install qemu-system-gui

Ran the following commands as suggested by: (https://github.com/sickcodes/Docker-OSX/issues/517)

export DISPLAY=$(cat /etc/resolv.conf | grep nameserver | awk '{print $2}'):0
xhost +

the first "export" command might not be needed, but I ran it anyway.

then try running the docker command inside on the Ubuntu WSL

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 \
    sickcodes/docker-osx:auto

and it worked, finally! Hopefully it stays this way and doesnt stop working again.

@AldenIsMe commented on GitHub (Sep 9, 2023): I just managed to fix this issues after about 2-3 hours of debugging and trying different things. I'm currently running Windows 11 and had the same issue, I fixed it by: Downloading Ubuntu WSL (via the Windows Store) Ran these commnads to download xhost on wsl: ``` sudo apt install x11-apps -y sudo apt install x11-xserver-utils -y sudo apt install qemu-system-gui ``` Ran the following commands as suggested by: (https://github.com/sickcodes/Docker-OSX/issues/517) ``` export DISPLAY=$(cat /etc/resolv.conf | grep nameserver | awk '{print $2}'):0 xhost + ``` the first "export" command might not be needed, but I ran it anyway. then try running the docker command inside on the Ubuntu WSL ``` 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 \ sickcodes/docker-osx:auto ``` and it worked, finally! Hopefully it stays this way and doesnt stop working again.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/Docker-OSX-sickcodes#509