Class DockerService


  • @Singleton
    public class DockerService
    extends Object
    Provides methods to work with Docker images
    Since:
    1.1
    Author:
    Álvaro Sánchez-Mariscal
    • Constructor Detail

      • DockerService

        @Inject
        public DockerService​(org.apache.maven.project.MavenProject mavenProject)
    • Method Detail

      • buildImageCmd

        public com.github.dockerjava.api.command.BuildImageCmd buildImageCmd​(String dockerfileName)
                                                                      throws IOException
        Throws:
        IOException
      • buildImageCmd

        public com.github.dockerjava.api.command.BuildImageCmd buildImageCmd()
      • buildImage

        public String buildImage​(com.github.dockerjava.api.command.BuildImageCmd builder)
      • copyFromContainer

        public File copyFromContainer​(String imageId,
                                      String containerPath)