code: func (daemon *Daemon) ContainerUpdate(name string, hostConfig *container.HostConfig) (container.ContainerUpdateOKBody, error) {
  	var warnings []string
  
  	c, err := daemon.GetContainer(name)
  	if err != nil {
  		return container.ContainerUpdateOKBody{Warnings: warnings}, err
  	}
  
  	warnings, err = daemon.verifyContainerSettings(c.OS, hostConfig, nil, true)
  	if err != nil {
  		return container.ContainerUpdateOKBody{Warnings: warnings}, errdefs.InvalidParameter(err)
  	}
  
  	if err := daemon.update(name, hostConfig); err != nil {
  		return container.ContainerUpdateOKBody{Warnings: warnings}, err
  	}
  
  	return container.ContainerUpdateOKBody{Warnings: warnings}, nil
  }
docs: // ContainerUpdate updates configuration of the container