ksync: Cannot connect to the Docker daemon

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.

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Reactions: 4
  • Comments: 18

Most upvoted comments

@optimus-kart any news on this?