Class DockerInstance


  • public class DockerInstance
    extends java.lang.Object
    Instance of running Docker.
    Author:
    Daniel Sagenschneider
    • Constructor Summary

      Constructors 
      Constructor Description
      DockerInstance​(java.lang.String containerName, java.lang.String imageName, java.lang.String containerId, com.github.dockerjava.api.DockerClient docker)
      Instantiate.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void shutdown()
      Shuts down the Docker container and removes it.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DockerInstance

        public DockerInstance​(java.lang.String containerName,
                              java.lang.String imageName,
                              java.lang.String containerId,
                              com.github.dockerjava.api.DockerClient docker)
        Instantiate.
        Parameters:
        containerId - Identifier for the container of the docker instance.
        docker - DockerClient.
    • Method Detail

      • shutdown

        public void shutdown()

        Shuts down the Docker container and removes it.

        This enables a fresh Docker container for next use / test.