Signed-off-by: David Calavera <david.calavera@gmail.com> Upstream-commit: 55333e8f9018585f28f13231a3073e2746d7c969 Component: engine
9 lines
277 B
Go
9 lines
277 B
Go
package lib
|
|
|
|
// ContainerPause pauses the main process of a given container without terminating it.
|
|
func (cli *Client) ContainerPause(containerID string) error {
|
|
resp, err := cli.post("/containers/"+containerID+"/pause", nil, nil, nil)
|
|
ensureReaderClosed(resp)
|
|
return err
|
|
}
|