зеркало из https://github.com/docker/engine-api.git
13 строки
353 B
Go
13 строки
353 B
Go
package client
|
|
|
|
import (
|
|
"github.com/docker/engine-api/types/container"
|
|
)
|
|
|
|
// ContainerUpdate updates resources of a container
|
|
func (cli *Client) ContainerUpdate(containerID string, updateConfig container.UpdateConfig) error {
|
|
resp, err := cli.post("/containers/"+containerID+"/update", nil, updateConfig, nil)
|
|
ensureReaderClosed(resp)
|
|
return err
|
|
}
|