sickcodes / Docker-OSX

Run macOS VM in a Docker! Run near native OSX-KVM in Docker! X11 Forwarding! CI/CD for OS X Security Research! Docker mac Containers.
https://hub.docker.com/r/sickcodes/docker-osx
GNU General Public License v3.0
45.33k stars 2.4k forks source link

Wont run. unknown server OS: dockerd is running okay. #350

Open obnoxiousish opened 2 years ago

obnoxiousish commented 2 years ago

~ » docker run -it \ o@mary --device /dev/kvm \ -p 50922:10022 \ -v /tmp/.X11-unix:/tmp/.X11-unix \ -e "DISPLAY=${DISPLAY:-:0.0}" \ sickcodes/docker-osx:auto

docker: unknown server OS: . See 'docker run --help'.

Linux mary 5.14.3-arch1-1 #1 SMP PREEMPT Sun, 12 Sep 2021 20:51:34 +0000 x86_64 GNU/Linux :0 [sudo] password for o: 1 NAME="Arch Linux" PRETTY_NAME="Arch Linux" Filesystem Size Used Avail Use% Mounted on /dev/mapper/vg0-root 413G 80G 313G 21% / QEMU emulator version 6.1.0 Copyright (c) 2003-2021 Fabrice Bellard and the QEMU Project developers libvirtd (libvirt) 7.7.0 total used free shared buff/cache available Mem: 15Gi 2.4Gi 11Gi 51Mi 1.4Gi 12Gi Swap: 8.0Gi 0B 8.0Gi 12 24 crw-rw-rw- 1 root kvm 10, 232 Sep 29 23:42 /dev/kvm total 0 drwxrwxrwt 2 root root 60 Sep 29 23:42 . drwxrwxrwt 13 root root 360 Sep 29 23:44 .. srwxrwxrwx 1 root o 0 Sep 29 23:42 X0 root 880 0.1 0.4 2127344 76388 ? Ssl 23:42 0:00 /usr/bin/dockerd -H fd:// o 5732 0.0 0.0 6424 2356 pts/1 S+ 23:46 0:00 grep --color=auto --exclude-dir=.bzr --exclude-dir=CVS --exclude-dir=.git --exclude-dir=.hg --exclude-dir=.svn --exclude-dir=.idea --exclude-dir=.tox dockerd Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get "http://%2Fvar%2Frun%2Fdocker.sock/v1.24/containers/json": dial unix /var/run/docker.sock: connect: permission denied kvm:x:992: libvirt:x:967: docker:x:964:


sickcodes commented 2 years ago

Looks like Docker isn't set up right.

Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get "http://%2Fvar%2Frun%2Fdocker.sock/v1.24/containers/json": dial unix /var/run/docker.sock: connect: permission denied

what type of system are you running to have the rootfs in the location in the debug?

obnoxiousish commented 2 years ago

I uninstalled all of it incl docker and just gave up but running arch linux on LUKS nvme

Sent from ProtonMail for iOS

On Thu, Sep 30, 2021 at 17:14, sickcodes @.***> wrote:

Looks like Docker isn't set up right.

Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get "http://%2Fvar%2Frun%2Fdocker.sock/v1.24/containers/json": dial unix /var/run/docker.sock: connect: permission denied

what type of system are you running to have the rootfs in the location in the debug?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android.

sickcodes commented 2 years ago

Adding yourself to the Docker group should fix it.

bsautner commented 2 years ago

i also had to run sudo chmod 666 /var/run/docker.sock same errors that cleared it. arch linux

Skaldebane commented 2 years ago

@bsautner It works on Fedora 36!

@sickcodes Maybe you should add this to common issues?