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:
parent
a18ffa69c9
commit
aed76eb7e3
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user