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