Documentation ¶
Index ¶
- Variables
- func ContainerExists(ID string) error
- func CreateImage(filePath string, imageName string) error
- func CreateNewContainer(imageName string, address string, port string) (string, error)
- func DeleteContainer(ID string) error
- func DeleteImage(imageID string) error
- func GetIPAddress(containerID string, networkName string) (string, error)
- func GetImageIDByTag(i Images, inputTag string) (string, error)
- func IsContainerRunning(ID string) bool
- func ListContainers() ([]types.Container, error)
- func ListImages() ([]types.ImageSummary, error)
- func PauseContainer(ID string) error
- func StartContainer(ID string, networkName string) error
- func StopContainer(ID string) error
- func StopContainerByImageID(imageID string) error
- func UnpauseContainer(ID string) error
- type Images
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrContainerNotFound = errors.New("Container not found")
View Source
var ErrImageNotFound = errors.New("Image not found")
View Source
var ErrNoImagesDeleted = errors.New("No images were deleted")
Functions ¶
func ContainerExists ¶ added in v0.0.2
func CreateImage ¶
func CreateNewContainer ¶
CreateNewContainer creates and starts a docker container using an existing image defined by imageName
func DeleteContainer ¶
func DeleteImage ¶
func GetIPAddress ¶ added in v0.0.3
func IsContainerRunning ¶ added in v0.0.2
func ListContainers ¶
func ListImages ¶
func ListImages() ([]types.ImageSummary, error)
func PauseContainer ¶ added in v0.0.2
func StartContainer ¶
func StopContainer ¶
func StopContainerByImageID ¶
func UnpauseContainer ¶ added in v0.0.2
Types ¶
type Images ¶
type Images []types.ImageSummary
Click to show internal directories.
Click to hide internal directories.