Class DockerImage

  • All Implemented Interfaces:
    Image

    public class DockerImage
    extends Object
    implements Image
    Class represents DockerImage. Providing necessary functionality, like building and deleting images.
    • Constructor Detail

      • DockerImage

        public DockerImage​(DockerManager dockerManager)
        Instantiates a new Docker image.
        Parameters:
        dockerManager - the docker manager
    • Method Detail

      • buildImage

        public void buildImage​(Set<String> tag,
                               String path)
        Method provides image building and selecting right path for resource files.
        Specified by:
        buildImage in interface Image
        Parameters:
        tag - Set of image tags
        path - Path for dockerfile
      • deleteImage

        public void deleteImage​(Set<String> tags)
        Description copied from interface: Image
        Delete image.
        Specified by:
        deleteImage in interface Image
        Parameters:
        tags - the tags
      • deleteImage

        public void deleteImage​(String imageTag)
        Delete image.
        Parameters:
        imageTag - the image tag