Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

help me #675

Open
nanoalto opened this issue Jul 1, 2023 · 1 comment
Open

help me #675

nanoalto opened this issue Jul 1, 2023 · 1 comment

Comments

@nanoalto
Copy link

nanoalto commented 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

@AldenIsMe
Copy link

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: (#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 up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants