Commit 63dbf806 authored by Brian Downs's avatar Brian Downs

create symlink from docker sock to where crictl in k3s is looking for the sock to use

parent 233e85ec
...@@ -42,6 +42,12 @@ var ( ...@@ -42,6 +42,12 @@ var (
func run(ctx context.Context, cfg cmds.Agent, proxy proxy.Proxy) error { func run(ctx context.Context, cfg cmds.Agent, proxy proxy.Proxy) error {
nodeConfig := config.Get(ctx, cfg, proxy) 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 !nodeConfig.NoFlannel {
if err := flannel.Prepare(ctx, nodeConfig); err != nil { if err := flannel.Prepare(ctx, nodeConfig); err != nil {
return err return err
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment