[GH-ISSUE #675] help me #508

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

Originally created by @nanoalto on GitHub (Jul 1, 2023).
Original GitHub issue: https://github.com/sickcodes/Docker-OSX/issues/675

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). Original GitHub issue: https://github.com/sickcodes/Docker-OSX/issues/675 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.

<!-- gh-comment-id:1712403038 --> @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.
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#508
No description provided.