1
0
mirror of https://github.com/rancher/rke.git synced 2025-07-01 01:32:37 +00:00

Merge pull request #80 from superseb/defaultrestartpolicy

Remove invalid RestartPolicy
This commit is contained in:
Alena Prokharchyk 2017-11-30 09:30:23 -08:00 committed by GitHub
commit b4f45be1ff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -76,7 +76,6 @@ func doRunDeployer(host *hosts.Host, containerEnv []string) error {
"/etc/kubernetes:/etc/kubernetes", "/etc/kubernetes:/etc/kubernetes",
}, },
Privileged: true, Privileged: true,
RestartPolicy: container.RestartPolicy{Name: "never"},
} }
resp, err := host.DClient.ContainerCreate(context.Background(), imageCfg, hostCfg, nil, CrtDownloaderContainer) resp, err := host.DClient.ContainerCreate(context.Background(), imageCfg, hostCfg, nil, CrtDownloaderContainer)
if err != nil { if err != nil {