Documentation ¶
Overview ¶
Package docker provides an interface to work with Docker containers.
Index ¶
- func Exec(r runners.Runner, c *resources.AppConfig, cmd string) (string, error)
- func GetLogs(r runners.Runner, c *resources.AppConfig, sinceRelMins uint) (string, error)
- func ImageExists(r runners.Runner, dockerImage string) (bool, error)
- func IsContainerRunning(ctx context.Context, docker *client.Client, containerName string) (bool, error)
- func ListContainers(r runners.Runner, clonePool string) ([]string, error)
- func PrepareImage(runner runners.Runner, dockerImage string) error
- func PullImage(r runners.Runner, dockerImage string) error
- func RemoveContainer(r runners.Runner, cloneName string) (string, error)
- func RunContainer(r runners.Runner, c *resources.AppConfig) error
- func StopContainer(r runners.Runner, c *resources.AppConfig) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ImageExists ¶
ImageExists checks existence of Docker image.
func IsContainerRunning ¶
func IsContainerRunning(ctx context.Context, docker *client.Client, containerName string) (bool, error)
IsContainerRunning checks if specified container is running.
func ListContainers ¶
ListContainers lists container names.
func PrepareImage ¶
PrepareImage prepares a Docker image to use.
func RemoveContainer ¶
RemoveContainer removes specified container.
func RunContainer ¶
RunContainer runs specified container.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.