1
0
mirror of https://github.com/rancher/rke.git synced 2025-08-02 07:43:04 +00:00

Default the docker info

This commit is contained in:
Darren Shepherd 2018-03-31 03:54:12 -07:00
parent a18ffa69c9
commit aed76eb7e3

View File

@ -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