ssh: connect to host 127.0.0.1 port 10022: Connection refused #536

Open
opened 2025-12-29 01:21:13 +01:00 by adam · 4 comments
Owner

Originally created by @impvd on GitHub (Sep 27, 2023).

I followed the instructions from README:

docker pull sickcodes/docker-osx:auto

docker run -it \
    --device /dev/kvm \
    -p 50922:10022 \
    sickcodes/docker-osx:auto

But lots of repeating errors as follows:

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...
/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...
/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...
/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...
Originally created by @impvd on GitHub (Sep 27, 2023). I followed the instructions from README: ``` docker pull sickcodes/docker-osx:auto docker run -it \ --device /dev/kvm \ -p 50922:10022 \ sickcodes/docker-osx:auto ``` But lots of repeating errors as follows: ``` 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... /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... /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... /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... ```
Author
Owner

@saturnnine0 commented on GitHub (Nov 22, 2023):

having the same issue, any status or updates on this?

@saturnnine0 commented on GitHub (Nov 22, 2023): having the same issue, any status or updates on this?
Author
Owner

@TimBobkov commented on GitHub (Nov 26, 2023):

Same for me

@TimBobkov commented on GitHub (Nov 26, 2023): Same for me
Author
Owner

@paul-hammant commented on GitHub (Mar 21, 2024):

Me too. Docker install on 'penguin' (Debian) inside "ChromeOS Flex" with 8th gen Intel, 32 Gigs of RAM., and 2TB hard drive. Xeyes works to prove x/wayland is on the ChromeOS's GUI. $ echo ${DISPLAY} reports :0

...
libguestfs: qemu maxrss 261628K
libguestfs: command: run: rm
libguestfs: command: run: \ -rf /tmp/libguestfs3qZHf4
libguestfs: command: run: rm
libguestfs: command: run: \ -rf /tmp/libguestfssiSdt3
DEVICE_MODEL,SERIAL,BOARD_SERIAL,UUID,MAC_ADDRESS,WIDTH,HEIGHT,KERNEL_ARGS
"iMacPro1,1","C02T8XZPHX87","C02707401CDJG36AD","1BA12326-07FF-4E72-A4AD-3ED6560BF679",":88:ED:84","1920","1080",""
DEVICE_MODEL    SERIAL  BOARD_SERIAL    UUID    MAC_ADDRESS     WIDTH   HEIGHT  KERNEL_ARGS
iMacPro1,1      C02T8XZPHX87    C02707401CDJG36AD       1BA12326-07FF-4E72-A4AD-3ED6560BF679    :88:ED:84       1920    1080

  File: /home/arch/OSX-KVM/mac_hdd_ng.img
  Size: 19139461120     Blocks: 37381760   IO Block: 4096   regular file
Device: 0,65    Inode: 135162      Links: 1
Access: (0644/-rw-r--r--)  Uid: ( 1000/    arch)   Gid: ( 1000/    arch)
Access: 2024-03-21 10:48:12.086788273 +0000
Modify: 2024-03-21 10:48:12.086788273 +0000
Change: 2024-03-21 10:48:12.435788252 +0000
 Birth: 2024-03-21 10:48:12.085788273 +0000
Large image is being copied between layers, please wait a minute...
ssh-keygen: generating new host keys: RSA ECDSA ED25519 
nohup: appending output to 'nohup.out'
Booting Docker-OSX in the background. Please wait...
++ id -u
++ id -g
+ sudo chown 1000:1000 /dev/kvm
++ id -u
++ id -g
+ sudo chown -R 1000:1000 /dev/snd
+ [[ 3 = max ]]
+ [[ 3 = half ]]
++ id -u
++ id -g
+ sudo chown -R 1000:1000 /dev/snd
/usr/sbin/ssh-copy-id: INFO: Source of key(s) to be installed: "/home/arch/.ssh/id_docker_osx.pub"
+ exec qemu-system-x86_64 -m 3000 -cpu Penryn,vendor=GenuineIntel,+invtsc,vmware-cpuid-freq=on,+ssse3,+sse4.2,+popcnt,+avx,+aes,+xsave,+xsaveopt,check, -machine q35,accel=kvm:tcg -smp 4,cores=4 -usb -device usb-kbd -device usb-tablet -device 'isa-applesmc,osk=ourhardworkbythesewordsguardedpleasedontsteal(c)AppleComputerInc' -drive if=pflash,format=raw,readonly=on,file=/home/arch/OSX-KVM/OVMF_CODE.fd -drive if=pflash,format=raw,file=/home/arch/OSX-KVM/OVMF_VARS-1024x768.fd -smbios type=2 -audiodev alsa,id=hda -device ich9-intel-hda -device hda-duplex,audiodev=hda -device ich9-ahci,id=sata -drive id=OpenCoreBoot,if=none,snapshot=on,format=qcow2,file=/home/arch/OSX-KVM/OpenCore/OpenCore-nopicker.qcow2 -device ide-hd,bus=sata.2,drive=OpenCoreBoot -drive id=MacHDD,if=none,file=/home/arch/OSX-KVM/mac_hdd_ng.img,format=qcow2 -device ide-hd,bus=sata.4,drive=MacHDD -netdev user,id=net0,hostfwd=tcp::10022-:22,hostfwd=tcp::5900-:5900, -device vmxnet3,netdev=net0,id=net0,mac=52:54:00:09:49:17 -monitor stdio -boot menu=on -vga vmware
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...
/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...
/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...
/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
@paul-hammant commented on GitHub (Mar 21, 2024): Me too. Docker install on 'penguin' (Debian) inside "ChromeOS Flex" with 8th gen Intel, 32 Gigs of RAM., and 2TB hard drive. Xeyes works to prove x/wayland is on the ChromeOS's GUI. `$ echo ${DISPLAY}` reports `:0` ``` ... libguestfs: qemu maxrss 261628K libguestfs: command: run: rm libguestfs: command: run: \ -rf /tmp/libguestfs3qZHf4 libguestfs: command: run: rm libguestfs: command: run: \ -rf /tmp/libguestfssiSdt3 DEVICE_MODEL,SERIAL,BOARD_SERIAL,UUID,MAC_ADDRESS,WIDTH,HEIGHT,KERNEL_ARGS "iMacPro1,1","C02T8XZPHX87","C02707401CDJG36AD","1BA12326-07FF-4E72-A4AD-3ED6560BF679",":88:ED:84","1920","1080","" DEVICE_MODEL SERIAL BOARD_SERIAL UUID MAC_ADDRESS WIDTH HEIGHT KERNEL_ARGS iMacPro1,1 C02T8XZPHX87 C02707401CDJG36AD 1BA12326-07FF-4E72-A4AD-3ED6560BF679 :88:ED:84 1920 1080 File: /home/arch/OSX-KVM/mac_hdd_ng.img Size: 19139461120 Blocks: 37381760 IO Block: 4096 regular file Device: 0,65 Inode: 135162 Links: 1 Access: (0644/-rw-r--r--) Uid: ( 1000/ arch) Gid: ( 1000/ arch) Access: 2024-03-21 10:48:12.086788273 +0000 Modify: 2024-03-21 10:48:12.086788273 +0000 Change: 2024-03-21 10:48:12.435788252 +0000 Birth: 2024-03-21 10:48:12.085788273 +0000 Large image is being copied between layers, please wait a minute... ssh-keygen: generating new host keys: RSA ECDSA ED25519 nohup: appending output to 'nohup.out' Booting Docker-OSX in the background. Please wait... ++ id -u ++ id -g + sudo chown 1000:1000 /dev/kvm ++ id -u ++ id -g + sudo chown -R 1000:1000 /dev/snd + [[ 3 = max ]] + [[ 3 = half ]] ++ id -u ++ id -g + sudo chown -R 1000:1000 /dev/snd /usr/sbin/ssh-copy-id: INFO: Source of key(s) to be installed: "/home/arch/.ssh/id_docker_osx.pub" + exec qemu-system-x86_64 -m 3000 -cpu Penryn,vendor=GenuineIntel,+invtsc,vmware-cpuid-freq=on,+ssse3,+sse4.2,+popcnt,+avx,+aes,+xsave,+xsaveopt,check, -machine q35,accel=kvm:tcg -smp 4,cores=4 -usb -device usb-kbd -device usb-tablet -device 'isa-applesmc,osk=ourhardworkbythesewordsguardedpleasedontsteal(c)AppleComputerInc' -drive if=pflash,format=raw,readonly=on,file=/home/arch/OSX-KVM/OVMF_CODE.fd -drive if=pflash,format=raw,file=/home/arch/OSX-KVM/OVMF_VARS-1024x768.fd -smbios type=2 -audiodev alsa,id=hda -device ich9-intel-hda -device hda-duplex,audiodev=hda -device ich9-ahci,id=sata -drive id=OpenCoreBoot,if=none,snapshot=on,format=qcow2,file=/home/arch/OSX-KVM/OpenCore/OpenCore-nopicker.qcow2 -device ide-hd,bus=sata.2,drive=OpenCoreBoot -drive id=MacHDD,if=none,file=/home/arch/OSX-KVM/mac_hdd_ng.img,format=qcow2 -device ide-hd,bus=sata.4,drive=MacHDD -netdev user,id=net0,hostfwd=tcp::10022-:22,hostfwd=tcp::5900-:5900, -device vmxnet3,netdev=net0,id=net0,mac=52:54:00:09:49:17 -monitor stdio -boot menu=on -vga vmware 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... /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... /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... /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 ```
Author
Owner

@th3wingman commented on GitHub (Apr 11, 2024):

bump

@th3wingman commented on GitHub (Apr 11, 2024): bump
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/Docker-OSX#536