docker

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 4, 2019 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ContainerRunningByImageName

func ContainerRunningByImageName(name string) (string, bool)

ContainerRunningByImageName returns true if a container, built on the given image, is running

func EnsureDockerInit

func EnsureDockerInit()

EnsureDockerInit ensures that the Docker client is properly initialized

func ImagePull

func ImagePull(taggedName string, done chan bool)

ImagePull pulls the image corresponding to th given name and wait for the download to be completed.

The completion of the download will be notified using the chanel

func StartContainer

func StartContainer(url string, imageName string, done chan bool, ef util.ExchangeFolder, action action.ActionID)

StartContainer builds or updates a container base on the provided image name Once built the container will be started. The method will wait until the container is started and will notify it using the chanel

func StopContainerById

func StopContainerById(id string, done chan bool)

stopContainerById stops a container corresponding to the provider id

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL