Documentation ¶
Index ¶
- func CatFileInDockerImage(c *client.Client, imageName, fileName string) ([]byte, error)
- func GetDockerCompose(dockerComposePath string) (result types.DockerCompose, err error)
- func GetExitCode(containerName string) (int, error)
- func ListImages(c *client.Client) ([]string, error)
- func ListRunningContainers(c *client.Client) ([]string, error)
- func PullImage(c *client.Client, image string) error
- func PushImage(c *client.Client, writer io.Writer, imageName, encodedAuth string) error
- func RunInDockerImage(imageName, command string) (string, error)
- func TagImage(srcImage, targetImage string) error
- type RunConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CatFileInDockerImage ¶
CatFileInDockerImage reads the file fileName inside the given image
func GetDockerCompose ¶
func GetDockerCompose(dockerComposePath string) (result types.DockerCompose, err error)
GetDockerCompose reads docker-compose.yml at the given path and returns the dockerCompose object
func GetExitCode ¶ added in v0.28.4
GetExitCode returns the exit code for the given container
func ListImages ¶
ListImages returns the names of all images and an error (if any)
func ListRunningContainers ¶
ListRunningContainers returns the names of running containers and an error (if any)
func RunInDockerImage ¶
RunInDockerImage runs the given command in a new writeable container layer over the given image, removes the container when the command exits, and returns the output string and an error if any
Types ¶
Click to show internal directories.
Click to hide internal directories.