Merge pull request #74913 from yastij/explicit-restart-policy

explicit the restartPolicy on the dockershim
pull/564/head
Kubernetes Prow Robot 2019-03-07 16:12:39 -08:00 committed by GitHub
commit a6d8dbcaef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -137,6 +137,9 @@ func (ds *dockerService) CreateContainer(_ context.Context, r *runtimeapi.Create
},
HostConfig: &dockercontainer.HostConfig{
Binds: generateMountBindings(config.GetMounts()),
RestartPolicy: dockercontainer.RestartPolicy{
Name: "no",
},
},
}