Skip to content

Commit

Permalink
[containerd] try to find the containerd socket at the path specific t…
Browse files Browse the repository at this point in the history
…o MicroK8s (coroot/coroot#14)
  • Loading branch information
def committed Dec 28, 2022
1 parent ee1be41 commit 30be0a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion containers/containerd.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ var (
)

func ContainerdInit() error {
sockets := []string{"/run/k3s/containerd/containerd.sock", "/run/containerd/containerd.sock"}
sockets := []string{"/var/snap/microk8s/common/run/containerd.sock", "/run/k3s/containerd/containerd.sock", "/run/containerd/containerd.sock"}
var err error
for _, socket := range sockets {
containerdClient, err = containerd.New(proc.HostPath(socket),
Expand Down

0 comments on commit 30be0a4

Please sign in to comment.