docker / kitematic

Visual Docker Container Management on Mac & Windows
https://kitematic.com
Apache License 2.0
12.25k stars 1.41k forks source link

we can't find a native setup #2528

Closed suparek closed 7 years ago

suparek commented 7 years ago

I have a question:"we can't find a native setup.....", I have setup docker in my computer,my environment is Ubuntu kylin 16.10,why comes this???

FrenchBen commented 7 years ago

@suparek we try to look for the docker socket and talk to it - Can you provide me with the output of: docker info docker version ls -l /var/run/docker.sock

mil1i commented 7 years ago

I am also experiencing this on Solus.

✗ systemctl status docker
● docker.service - Docker Application Container Engine
   Loaded: loaded (/usr/lib64/systemd/system/docker.service; enabled; vendor preset: enabled)
   Active: active (running) since Fri 2017-03-31 14:09:21 MST; 6min ago
     Docs: https://docs.docker.com
 Main PID: 6190 (dockerd)
   CGroup: /system.slice/docker.service
           ├─6190 /usr/bin/dockerd --storage-driver=overlay -H fd://
           └─6210 docker-containerd -l unix:///var/run/docker/libcontainerd/docker-contain...

✗ systemctl status docker.socket
● docker.socket - Docker Socket for the API
   Loaded: loaded (/usr/lib64/systemd/system/docker.socket; enabled; vendor preset: enabled)
   Active: active (running) since Fri 2017-03-31 14:09:20 MST; 9min ago
   Listen: /var/run/docker.sock (Stream)

 ✗ docker info
Cannot connect to the Docker daemon. Is the docker daemon running on this host?

 ✗ docker version
Client:
 Version:      1.12.6
 API version:  1.24
 Go version:   go1.7.5
 Git commit:   78d18021ecba00c00730dec9d56de6896f9e708d78d18021ecba00c00730dec9d56de6896f9e708d
 Built:        Fri Jan 27 21:44:08 2017
 OS/Arch:      linux/amd64
Cannot connect to the Docker daemon. Is the docker daemon running on this host?

 ✗ ls -l /var/run/docker.sock
srw-rw---- 1 root docker 0 Mar 31 14:09 /var/run/docker.sock=
suparek commented 7 years ago

my output : $ systemctl status docker ● docker.service - Docker Application Container Engine Loaded: loaded (/lib/systemd/system/docker.service; enabled; vendor preset: e Active: active (running) since 六 2017-04-01 09:09:05 CST; 56min ago Docs: https://docs.docker.com Main PID: 1975 (dockerd) Tasks: 22 (limit: 4915) Memory: 90.8M CPU: 6.412s CGroup: /system.slice/docker.service ├─1975 /usr/bin/dockerd -H fd:// └─2196 docker-containerd -l unix:///var/run/docker/libcontainerd/dock

$ systemctl status docker.socket ● docker.socket - Docker Socket for the API Loaded: loaded (/lib/systemd/system/docker.socket; enabled; vendor preset: en Active: active (running) since 六 2017-04-01 09:08:49 CST; 57min ago Listen: /var/run/docker.sock (Stream)

$ sudo docker info Containers: 0 Running: 0 Paused: 0 Stopped: 0 Images: 0 Server Version: 17.03.1-ce Storage Driver: aufs Root Dir: /var/lib/docker/aufs Backing Filesystem: extfs Dirs: 0 Dirperm1 Supported: true Logging Driver: json-file Cgroup Driver: cgroupfs Plugins: Volume: local Network: bridge host macvlan null overlay Swarm: inactive Runtimes: runc Default Runtime: runc Init Binary: docker-init containerd version: 4ab9917febca54791c5f071a9d1f404867857fcc runc version: 54296cf40ad8143b62dbcaa1d90e520a2136ddfe init version: 949e6fa Security Options: apparmor seccomp Profile: default Kernel Version: 4.8.0-22-generic Operating System: Ubuntu Kylin 16.10 OSType: linux Architecture: x86_64 CPUs: 4 Total Memory: 15.55 GiB Name: yangtz-All-Series ID: WTUB:CMIZ:NB2W:3GTI:3YGG:JSPQ:VYFE:XVTU:37ST:M5XZ:KO53:K2G2 Docker Root Dir: /var/lib/docker Debug Mode (client): false Debug Mode (server): false Registry: https://index.docker.io/v1/ WARNING: No swap limit support Experimental: false Insecure Registries: 127.0.0.0/8 Live Restore Enabled: false

$ sudo docker version Client: Version: 17.03.1-ce API version: 1.27 Go version: go1.7.5 Git commit: c6d412e Built: Fri Mar 24 00:50:18 2017 OS/Arch: linux/amd64

Server: Version: 17.03.1-ce API version: 1.27 (minimum version 1.12) Go version: go1.7.5 Git commit: c6d412e Built: Fri Mar 24 00:50:18 2017 OS/Arch: linux/amd64 Experimental: false

$ ls -l /var/run/docker.sock srw-rw---- 1 root docker 0 4月 1 09:08 /var/run/docker.sock

FrenchBen commented 7 years ago

@suparek Thank you for providing this great output.

As you've shown in your different commands, your current user cannot use docker version without using sudo - Kitematic will have the exact same rights as your current user, aka no rights to access docker if your current user cannot.

Please see the post-installation steps here: https://docs.docker.com/engine/installation/linux/linux-postinstall/

fedz03 commented 6 years ago

I've experienced the same issue but what i notice is that i did not run kitematic in SU

souparno commented 5 years ago

bonnie@bonnie-VirtualBox:~/Workstation/kitematic$ docker info Containers: 0 Running: 0 Paused: 0 Stopped: 0 Images: 0 Server Version: 18.09.0 Storage Driver: overlay2 Backing Filesystem: extfs Supports d_type: true Native Overlay Diff: true Logging Driver: json-file Cgroup Driver: cgroupfs Plugins: Volume: local Network: bridge host macvlan null overlay Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog Swarm: inactive Runtimes: runc Default Runtime: runc Init Binary: docker-init containerd version: c4446665cb9c30056f4998ed953e6d4ff22c7c39 runc version: 4fc53a81fb7c994640722ac585fa9ca548971871 init version: fec3683 Security Options: apparmor seccomp Profile: default Kernel Version: 4.15.0-39-generic Operating System: Linux Mint 19 OSType: linux Architecture: x86_64 CPUs: 2 Total Memory: 5.195GiB Name: bonnie-VirtualBox ID: XUHU:OCGO:A42Z:AUXU:X4UZ:SSST:FCMZ:P5NE:Y3WV:5GMA:NYMT:THKV Docker Root Dir: /var/lib/docker Debug Mode (client): false Debug Mode (server): false Registry: https://index.docker.io/v1/ Labels: Experimental: false Insecure Registries: 127.0.0.0/8 Live Restore Enabled: false Product License: Community Engine

WARNING: No swap limit support

bonnie@bonnie-VirtualBox:~/Workstation/kitematic$ docker version Client: Version: 18.09.0 API version: 1.39 Go version: go1.10.4 Git commit: 4d60db4 Built: Wed Nov 7 00:48:53 2018 OS/Arch: linux/amd64 Experimental: false

Server: Docker Engine - Community Engine: Version: 18.09.0 API version: 1.39 (minimum version 1.12) Go version: go1.10.4 Git commit: 4d60db4 Built: Wed Nov 7 00:16:44 2018 OS/Arch: linux/amd64 Experimental: false

bonnie@bonnie-VirtualBox:~/Workstation/kitematic$ ls -l /var/run/docker.sock srw-rw---- 1 root docker 0 Nov 28 06:46 /var/run/docker.sock

ThiagoBfim commented 5 years ago

This can happen because it's without sudo user.

execute: id -nG This will list all user that can use docker.

If your user has not in the list use this command:

sudo usermod -aG docker ${USER}
su - ${USER}

Then restart the session and try to open kitematic.

Hope this helps.

ImtiazeA commented 5 years ago

I solved my issue following ThiagoBfim instructions.

oshai commented 5 years ago

For me, it didn't work. However, killing the process solved the issue.

ps -efww | grep -i kitematic

to find it.

jcreforme commented 5 years ago

how about running the command sudo kitematic

cardboardcode commented 5 years ago

Following jcreforme's instruction worked for me.

hottime commented 5 years ago

I have a question:"we can't find a native setup.....", I have setup docker in my computer,my environment is Ubuntu kylin 16.10,why comes this???

I had been installed several times, and I found a solution finally.

But, I don't know it's perfect solution for you.

It's very simple and i think it's a bug.

You try to run your Docker Desktop with Administrator privilege.

Have a good time.