mirror of
https://github.com/sickcodes/Docker-OSX.git
synced 2026-01-11 21:10:25 +01:00
ssh: Connection refused loop #121
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @shivangp76 on GitHub (Mar 10, 2021).
Hello,
When running the "Quick Start Large Pre-Made Image" headless version, after a couple of minutes, I see the CLI, so it works, but when I use the non-headless version, the following message repeats on loop. I also get the same message when running headless, but after a couple of minutes the CLI loads. I have tried running the non-headless command for 3+ hours and still the message loops.
Output to requested command:
Linux arch-desktop 5.11.4-arch1-1 #1 SMP PREEMPT Sun, 07 Mar 2021 18:00:49 +0000 x86_64 GNU/Linux
[sudo] password for shivang:
1
NAME="Arch Linux"
PRETTY_NAME="Arch Linux"
Filesystem Size Used Avail Use% Mounted on
/dev/sdb4 867G 192G 631G 24% /home
QEMU emulator version 5.2.0
Copyright (c) 2003-2020 Fabrice Bellard and the QEMU Project developers
libvirtd (libvirt) 7.0.0
total used free shared buff/cache available
Mem: 31Gi 1.6Gi 1.3Gi 352Mi 28Gi 28Gi
Swap: 9Gi 88Mi 9.9Gi
8
16
crw-rw-rw- 1 root kvm 10, 232 Mar 10 09:41 /dev/kvm
total 0
drwxrwxrwt 2 root root 60 Mar 10 08:47 .
drwxrwxrwt 13 root root 300 Mar 10 12:31 ..
srwxrwxrwx 1 shivang wheel 0 Mar 10 08:47 X0
root 1540 0.0 0.2 1898852 73808 ? Ssl 08:48 0:11 /usr/bin/dockerd -H fd://
shivang 416463 0.0 0.0 3172 812 pts/0 S+ 12:31 0:00 grep dockerd
kvm:x:992:
libvirt:x:972:
docker:x:971:shivang
@sickcodes commented on GitHub (Mar 10, 2021):
Does this image work?
Please post the error, it's most likely related to root/userspace display:
srwxrwxrwx 1 shivang wheel 0 Mar 10 08:47 X0Shivang is running the X server, but I have a feeling you're running docker using
sudo?If not, are you running as root? If not, then run docker run without root, because root doesn't have a desktop open. If you can't run without root, add yourself to kvm and libvirt groups are you're currently missing from them
@sickcodes commented on GitHub (Mar 10, 2021):
Also, apologies for making you wait 3 hours.
I should write a lil shell script that calculates how much % based off of
dfas I don't believe there's a way to verbosely show layer copy progress@shivangp76 commented on GitHub (Mar 11, 2021):
Here's the error message:
Also, I'm not using
sudoor running as root. I'm in the libvirt group, but I don't see a kvm group. Am I missing a package or something that would create the kvm group?@sickcodes commented on GitHub (Mar 11, 2021):
Should look something like this:
Anyway, it's probably this:
/usr/bin/dockerd -H fd://xhost +echo ${DISPLAY}What desktop environment are you using? Are you running NAS or anything?
@shivangp76 commented on GitHub (Mar 11, 2021):
Ah, I did
cat /etc/groupand realized the kvm group was there, but I just wasn't in it, so I added myself. FYI the permissions for the groups areSo now the Catalina image command you sent works and launches. There are still all of those alsa errors, but I can at least boot into Catalina and it works perfectly. However, I'm still getting the same error message for the original image I tried. What does this do exactly:
/usr/bin/dockerd -H fd://? I couldn't get it to run, but I'll look more into it.Also
I'm not using a desktop environment - just a window manager (dwm in case you were wondering). Not running NAS.
@sickcodes commented on GitHub (Mar 11, 2021):
Everything is fine, Alsa errors are normal
@shivangp76 commented on GitHub (Mar 11, 2021):
So I still couldn't get Pre-Made Non-Headless Image working (
docker run -it \ --device /dev/kvm \ -p 50922:10022 \ -v /tmp/.X11-unix:/tmp/.X11-unix \ -e "DISPLAY=${DISPLAY:-:0.0}" \ sickcodes/docker-osx:auto), but the catalina and big-sur images work, so I guess I'll just make do with that. Thank you so much for the help!