github.com/walkingsparrow/docker@v1.4.2-0.20151218153551-b708a2249bfa/api/client/lib/pause.go (about) 1 package lib 2 3 // ContainerPause pauses the main process of a given container without terminating it. 4 func (cli *Client) ContainerPause(containerID string) error { 5 resp, err := cli.post("/containers/"+containerID+"/pause", nil, nil, nil) 6 ensureReaderClosed(resp) 7 return err 8 }