|
@@ -557,13 +557,7 @@ func (container *Container) InitDNSHostConfig() {
|
|
|
|
|
|
// UpdateMonitor updates monitor configure for running container
|
|
|
func (container *Container) UpdateMonitor(restartPolicy containertypes.RestartPolicy) {
|
|
|
- type policySetter interface {
|
|
|
- SetPolicy(containertypes.RestartPolicy)
|
|
|
- }
|
|
|
-
|
|
|
- if rm, ok := container.RestartManager().(policySetter); ok {
|
|
|
- rm.SetPolicy(restartPolicy)
|
|
|
- }
|
|
|
+ container.RestartManager().SetPolicy(restartPolicy)
|
|
|
}
|
|
|
|
|
|
// FullHostname returns hostname and optional domain appended to it.
|