diff --git a/cluster/hosts.go b/cluster/hosts.go index c9945087..2fc6df91 100644 --- a/cluster/hosts.go +++ b/cluster/hosts.go @@ -6,6 +6,7 @@ import ( "context" + "github.com/docker/docker/api/types" "github.com/rancher/rke/hosts" "github.com/rancher/rke/log" "github.com/rancher/rke/pki" @@ -62,6 +63,9 @@ func (c *Cluster) InvertIndexHosts() error { ToDelLabels: map[string]string{}, ToAddTaints: []string{}, ToDelTaints: []string{}, + DockerInfo: types.Info{ + DockerRootDir: "/var/lib/docker", + }, } for k, v := range host.Labels { newHost.ToAddLabels[k] = v