mirror of https://github.com/docker/docs.git
13 lines
344 B
Go
13 lines
344 B
Go
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
|
|
}
|