mirror of
https://github.com/rancher/rke.git
synced 2025-08-18 14:57:03 +00:00
Default the docker info
This commit is contained in:
parent
a18ffa69c9
commit
aed76eb7e3
@ -6,6 +6,7 @@ import (
|
|||||||
|
|
||||||
"context"
|
"context"
|
||||||
|
|
||||||
|
"github.com/docker/docker/api/types"
|
||||||
"github.com/rancher/rke/hosts"
|
"github.com/rancher/rke/hosts"
|
||||||
"github.com/rancher/rke/log"
|
"github.com/rancher/rke/log"
|
||||||
"github.com/rancher/rke/pki"
|
"github.com/rancher/rke/pki"
|
||||||
@ -62,6 +63,9 @@ func (c *Cluster) InvertIndexHosts() error {
|
|||||||
ToDelLabels: map[string]string{},
|
ToDelLabels: map[string]string{},
|
||||||
ToAddTaints: []string{},
|
ToAddTaints: []string{},
|
||||||
ToDelTaints: []string{},
|
ToDelTaints: []string{},
|
||||||
|
DockerInfo: types.Info{
|
||||||
|
DockerRootDir: "/var/lib/docker",
|
||||||
|
},
|
||||||
}
|
}
|
||||||
for k, v := range host.Labels {
|
for k, v := range host.Labels {
|
||||||
newHost.ToAddLabels[k] = v
|
newHost.ToAddLabels[k] = v
|
||||||
|
Loading…
Reference in New Issue
Block a user