container_start.go 267 B

12345678
  1. package lib
  2. // ContainerStart sends a request to the docker daemon to start a container.
  3. func (cli *Client) ContainerStart(containerID string) error {
  4. resp, err := cli.post("/containers/"+containerID+"/start", nil, nil, nil)
  5. ensureReaderClosed(resp)
  6. return err
  7. }