container_update.go 344 B

123456789101112
  1. package lib
  2. import (
  3. "github.com/docker/docker/api/types/container"
  4. )
  5. // ContainerUpdate updates resources of a container
  6. func (cli *Client) ContainerUpdate(containerID string, hostConfig container.HostConfig) error {
  7. resp, err := cli.post("/containers/"+containerID+"/update", nil, hostConfig, nil)
  8. ensureReaderClosed(resp)
  9. return err
  10. }