mirror of https://github.com/k3s-io/k3s
explicit the restartPolicy on the dockershim
This change explicits the restart policy, as on some docker version (e.g. 11.07-ce) the default for this field is "". which seems to be not respected by dockerdpull/564/head
parent
79e8a29544
commit
5f7c60859c
|
@ -137,6 +137,9 @@ func (ds *dockerService) CreateContainer(_ context.Context, r *runtimeapi.Create
|
||||||
},
|
},
|
||||||
HostConfig: &dockercontainer.HostConfig{
|
HostConfig: &dockercontainer.HostConfig{
|
||||||
Binds: generateMountBindings(config.GetMounts()),
|
Binds: generateMountBindings(config.GetMounts()),
|
||||||
|
RestartPolicy: dockercontainer.RestartPolicy{
|
||||||
|
Name: "no",
|
||||||
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue