From 63dbf806dffe3bcfe4cf04df23c6059e2f6a0a7b Mon Sep 17 00:00:00 2001 From: Brian Downs Date: Tue, 23 Jun 2020 18:30:24 -0700 Subject: [PATCH] create symlink from docker sock to where crictl in k3s is looking for the sock to use Signed-off-by: Brian Downs --- pkg/agent/run.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkg/agent/run.go b/pkg/agent/run.go index aa287e29da..c069123c04 100644 --- a/pkg/agent/run.go +++ b/pkg/agent/run.go @@ -42,6 +42,12 @@ var ( func run(ctx context.Context, cfg cmds.Agent, proxy proxy.Proxy) error { nodeConfig := config.Get(ctx, cfg, proxy) + if cfg.Docker { + if err := os.Symlink("/var/run/dockershim.sock", "/run/k3s/containerd/containerd.sock"); err != nil { + return err + } + } + if !nodeConfig.NoFlannel { if err := flannel.Prepare(ctx, nodeConfig); err != nil { return err