Documentation
¶
Index ¶
- Variables
- 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 GetImageIDByTag(i Images, inputTag string) (string, error)
- func ListContainers() ([]types.Container, error)
- func ListImages() ([]types.ImageSummary, error)
- func StartContainer(ID string) error
- func StopContainer(ID string) error
- func StopContainerByImageID(imageID string) error
- type Images
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrImageNotFound = errors.New("Image not found")
View Source
var ErrNoImagesDeleted = errors.New("No images were deleted")
Functions ¶
func CreateImage ¶
func CreateNewContainer ¶
CreateNewContainer creates and starts a docker container using an existing image defined by imageName
func DeleteContainer ¶
func DeleteImage ¶
func ListContainers ¶
func ListImages ¶
func ListImages() ([]types.ImageSummary, error)
func StartContainer ¶
func StopContainer ¶
func StopContainerByImageID ¶
Types ¶
type Images ¶
type Images []types.ImageSummary
Click to show internal directories.
Click to hide internal directories.