Documentation
¶
Index ¶
- func ImageExistsLocally(ctx context.Context, c *client.Client, image string) (bool, error)
- func NetCreate(ctx context.Context, client *client.Client, netName string, internal bool) (string, error)
- func NetExists(ctx context.Context, client *client.Client, netName string) (bool, string, error)
- func PullImage(ctx context.Context, c *client.Client, image string) error
- func RemoveContainer(ctx context.Context, c *client.Client, name string) error
- func RemoveNetwork(ctx context.Context, c *client.Client, netName string) error
- func RunAndWaitContainer(ctx context.Context, c *client.Client, config ContainerConfigs) error
- func RunContainer(ctx context.Context, c *client.Client, configs ContainerConfigs) error
- type ContainerConfigs
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ImageExistsLocally ¶
func RemoveContainer ¶
func RemoveNetwork ¶
func RunAndWaitContainer ¶
Creates and starts a container and then waits for it to exit
func RunContainer ¶
Creates and starts a container and returns without waiting
Types ¶
type ContainerConfigs ¶
type ContainerConfigs struct {
ContName string
Container *container.Config
Host *container.HostConfig
Networking *network.NetworkingConfig
}
Click to show internal directories.
Click to hide internal directories.