Package org.hortonmachine.modules.docker
Class DockerHandler
java.lang.Object
org.hortonmachine.modules.docker.DockerHandler
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidexecCommand(String command) Checks if a certain image is available.Initialize the docker client.voidvoidremoveImage(String imageId) voidstartContainer(String imageName, String volumePath)
-
Field Details
-
WORKSPACE
- See Also:
-
keepAliveCmd
-
-
Constructor Details
-
DockerHandler
public DockerHandler()
-
-
Method Details
-
hasImage
Checks if a certain image is available.- Parameters:
imageName- the image to check.- Returns:
- the id of the image or null.
-
removeImage
-
pullImage
public void pullImage(String imageName, String tag, org.hortonmachine.gears.libs.monitor.IHMProgressMonitor pm) throws Exception - Throws:
Exception
-
initDocker
Initialize the docker client.- Returns:
- an error message if there were issues,
nullif everyhtin gwent smooth.
-
startContainer
- Throws:
Exception
-
execCommand
- Throws:
Exception
-
closeClient
- Throws:
Exception
-