- Add API support for SCTP port mapping - Add canonical import path - Add `REMOVE` and `ORPHANED` to TaskState - Fix TLS from environment variables in client - Introduce NewClientWithOpts func to build custom client easily - Wrap response errors for container copy methodsto fix error detection using `IsErrNotFound` and `IsErrNotImplemented` for `ContainerStatPath`, `CopyFromContainer`, and `CopyToContainer` methods. - Produce errors when empty ids are passed into inspect calls Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
11 lines
385 B
Go
11 lines
385 B
Go
package client // import "github.com/docker/docker/client"
|
|
|
|
import "golang.org/x/net/context"
|
|
|
|
// ContainerPause pauses the main process of a given container without terminating it.
|
|
func (cli *Client) ContainerPause(ctx context.Context, containerID string) error {
|
|
resp, err := cli.post(ctx, "/containers/"+containerID+"/pause", nil, nil, nil)
|
|
ensureReaderClosed(resp)
|
|
return err
|
|
}
|