123456789101112 |
- package lib
- import (
- "github.com/docker/docker/api/types/container"
- )
- // ContainerUpdate updates resources of a container
- func (cli *Client) ContainerUpdate(containerID string, hostConfig container.HostConfig) error {
- resp, err := cli.post("/containers/"+containerID+"/update", nil, hostConfig, nil)
- ensureReaderClosed(resp)
- return err
- }
|