зеркало из https://github.com/docker/engine-api.git
9 строки
267 B
Go
9 строки
267 B
Go
|
package lib
|
||
|
|
||
|
// ContainerStart sends a request to the docker daemon to start a container.
|
||
|
func (cli *Client) ContainerStart(containerID string) error {
|
||
|
resp, err := cli.post("/containers/"+containerID+"/start", nil, nil, nil)
|
||
|
ensureReaderClosed(resp)
|
||
|
return err
|
||
|
}
|