code: func (container *Container) UpdateMonitor(restartPolicy containertypes.RestartPolicy) {
  	type policySetter interface {
  		SetPolicy(containertypes.RestartPolicy)
  	}
  
  	if rm, ok := container.RestartManager().(policySetter); ok {
  		rm.SetPolicy(restartPolicy)
  	}
  }
docs: // UpdateMonitor updates monitor configure for running container