Interface PlatformConnector

    • Method Detail

      • createContainer

        String createContainer​(String imageName,
                               String[] envVariables,
                               ContainerStateObserver observer)
        This method sends a Commands.DOCKER_CONTAINER_START command to create and start an instance of the given image using the given environment variables.
        Parameters:
        imageName - the name of the image of the docker container
        envVariables - environment variables that should be added to the created container
        observer - the container state observer that is called if the container terminates
        Returns:
        the name of the container instance or null if an error occurred
      • stopContainer

        void stopContainer​(String containerName)
        This method sends a Commands.DOCKER_CONTAINER_STOP command to stop the container with the given id.
        Parameters:
        containerName - the name of the container instance that should be stopped