pause.go 277 B

12345678
  1. package lib
  2. // ContainerPause pauses the main process of a given container without terminating it.
  3. func (cli *Client) ContainerPause(containerID string) error {
  4. resp, err := cli.post("/containers/"+containerID+"/pause", nil, nil, nil)
  5. ensureReaderClosed(resp)
  6. return err
  7. }