Skip to content
This repository was archived by the owner on Jul 19, 2025. It is now read-only.
This repository was archived by the owner on Jul 19, 2025. It is now read-only.

Cannot connect to the Docker daemon #289

@sdaschner

Description

@sdaschner

Both ksync init and ksync doctor fail with the following error: rpc error: code = Unknown desc = Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?

However, docker ps works, I can connect Docker containers to the Docker host by mounting /var/run/docker.sock, and the current user is in the docker group.

More information:

$> docker version
Client:
 Version:           18.09.5-ce
 API version:       1.39
 Go version:        go1.12.3
 Git commit:        e8ff056dbc
 Built:             Fri Apr 12 08:22:13 2019
 OS/Arch:           linux/amd64
 Experimental:      false

Server:
 Engine:
  Version:          18.09.5-ce
  API version:      1.39 (minimum version 1.12)
  Go version:       go1.12.3
  Git commit:       e8ff056dbc
  Built:            Fri Apr 12 08:21:24 2019
  OS/Arch:          linux/amd64
  Experimental:     false

$> ksync version
ksync:
	Version:    Release
	Go Version: go1.12.1
	Git Commit: c27ce95
	Git Tag:    0.3.6
	Built:      Mon Mar 18 17:06:42 +0000 2019
	OS/Arch:    linux/amd64
service:
	Version:    Release
	Go Version: go1.12.1
	Git Commit: c27ce95
	Git Tag:    0.3.6
	Built:      Mon Mar 18 17:02:16 +0000 2019

$> ls -ahl /var/run/docker.sock
srw-rw---- 1 root docker 0 Apr 30 06:12 /var/run/docker.sock

$> ksync doctor
Extra Binaries                              ✓
Cluster Config                              ✓
Cluster Connection                          ✓
Cluster Version                             ✓
Cluster Permissions                         ✓
Cluster Service                             ✓
Service Health                              ✓
Service Version                             ✓
Docker Version                              X
	rpc error: code = Unknown desc = Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?

I've installed ksync using the gimme.sh script.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions