Documentation ¶
Index ¶
- func CreateCheckpoint(checkpointOpts types.CheckpointReqOpts) error
- func CreateContainer(opts types.CreateOpts) (container.ContainerCreateCreatedBody, error)
- func GetImageByContainer(containerID string) (string, error)
- func GetImageByImageID(imageID string) (string, error)
- func GetPortBinding(containerID string) error
- func Inspect(containerID string) (types.ContainerJSON, error)
- func ListContainers(opts types.ContainerListOptions) ([]types.Container, error)
- func RunContainer(opts RunOpts) (string, error)
- func StartContainer(opts StartOpts) error
- func StopContainer(ContainerID string, timeout *time.Duration) error
- type RunOpts
- type StartOpts
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateCheckpoint ¶
func CreateCheckpoint(checkpointOpts types.CheckpointReqOpts) error
CreateCheckpoint create a checkpoint for a container
func CreateContainer ¶
func CreateContainer(opts types.CreateOpts) (container.ContainerCreateCreatedBody, error)
CreateContainer create a container
func GetImageByContainer ¶
GetImageByContainer get image name of container, not directly used
func GetImageByImageID ¶
@deprecated replaced by GetImageByContainer GetImageByImageID get image name
func GetPortBinding ¶
GetPortBinding get port binding of container
func Inspect ¶
func Inspect(containerID string) (types.ContainerJSON, error)
Inspect get info of container
func ListContainers ¶
func ListContainers(opts types.ContainerListOptions) ([]types.Container, error)
ListContainers ...
func StartContainer ¶
StartContainer start a container with opts
Types ¶
type StartOpts ¶
type StartOpts struct { ContainerID string CStartOpts types.ContainerStartOptions }
StartOpts ...
Click to show internal directories.
Click to hide internal directories.