docker2
library
Classes
Container
A docker container.
Containers
Holds a list of Docker containers.
Docker
Top level class generally used as the starting point manage
docker containers and images.
Image
Represents a docker image.
ImageName
Used to parse and hold the components of a docker image name.
Images
Class used to obtain a list of images.
Volume
A docker container.
VolumeLabel
A volume label containing the key and value
VolumeMount
Describes a Volume and where it is to be mounted
in a container.
Volumes
Holds a list of Docker containers.
Functions
build ({required String pathToDockerFile , required String imageName , required String version , bool clean = false , bool pull = false , List <String > buildArgs = const <String>[] , String ? repository , String ? workingDirectory , bool showProgress = true , bool buildx = false })
→ Image
Builds a docker image from the docker file at pathToDockerFile
Giving it a name of imageName
:version
If you set the optional clean
argument to true then the build
will be run with the --no-cache flag set.
buildx ({required String pathToDockerFile , required String imageName , required String version , bool clean = false , bool pull = false , List <String > buildArgs = const <String>[] , String ? repository , String ? workingDirectory , bool showProgress = true })
→ Image
dockerRun (String cmd , String args , {bool terminal = false })
→ List <String >
runs the passed docker command.
publish ({required Image image , bool showProgress = true })
→ void
tagName ({required String imageName , required String version , String ? repository })
→ String
tagNameLatest ({required String imageName , String ? repository })
→ String