| Modifier and Type | Method and Description |
|---|---|
protected void |
AbstractBuildSupportMojo.buildImage(ServiceHub hub,
ImageConfiguration imageConfig) |
protected void |
AbstractDockerMojo.checkImageWithAutoPull(ServiceHub hub,
String image,
String registry,
boolean autoPullAlwaysAllowed)
Check an image, and, if
autoPull is set to true, fetch it. |
protected void |
WatchMojo.executeInternal(ServiceHub hub) |
protected void |
StopMojo.executeInternal(ServiceHub hub) |
void |
StartMojo.executeInternal(ServiceHub hub)
Hook for subclass for doing the real job
|
protected void |
SourceMojo.executeInternal(ServiceHub hub) |
protected void |
RemoveMojo.executeInternal(ServiceHub hub) |
void |
PushMojo.executeInternal(ServiceHub hub)
Hook for subclass for doing the real job
|
protected void |
LogsMojo.executeInternal(ServiceHub hub) |
protected void |
BuildMojo.executeInternal(ServiceHub hub) |
protected abstract void |
AbstractDockerMojo.executeInternal(ServiceHub serviceHub)
Hook for subclass for doing the real job
|
| Modifier and Type | Method and Description |
|---|---|
void |
DockerAccess.buildImage(String image,
File dockerArchive,
boolean forceRemove,
boolean noCache)
Create an docker image from a given archive
|
void |
DockerAccess.copyArchive(String containerId,
File archive,
String targetPath)
Copy an archive (must be a tar) into a running container
Get all containers matching a certain label.
|
String |
DockerAccess.createContainer(ContainerCreateConfig configuration,
String containerName)
Create a container from the given image.
|
String |
DockerAccess.createExecContainer(String containerId,
Arguments arguments)
Sets up an exec instance for a running container id
|
String |
DockerAccess.getImageId(String name)
Get the image id of a given name or
null if no such image exists |
boolean |
DockerAccess.hasImage(String name)
Check whether the given name exists as image at the docker daemon
|
Container |
DockerAccess.inspectContainer(String containerId)
Inspect a container
|
List<Container> |
DockerAccess.listContainers(int limit)
List containers
|
void |
DockerAccess.pullImage(String image,
AuthConfig authConfig,
String registry)
Pull an image from a remote registry and store it locally.
|
void |
DockerAccess.pushImage(String image,
AuthConfig authConfig,
String registry)
Push an image to a registry.
|
void |
DockerAccess.removeContainer(String containerId,
boolean removeVolumes)
Remove a container with the given id
|
boolean |
DockerAccess.removeImage(String image,
boolean... force)
Remove an image from this docker installation
|
void |
DockerAccess.start()
Lifecycle method for this access class which must be called before any other method is called.
|
void |
DockerAccess.startContainer(String containerId)
Start a container.
|
void |
DockerAccess.startExecContainer(String containerId,
LogOutputSpec outputSpec)
Starts a previously set up exec instance id.
|
void |
DockerAccess.stopContainer(String containerId,
int killWait)
Stop a container.
|
void |
DockerAccess.tag(String sourceImage,
String targetImage,
boolean force)
Alias an image in the repository with a complete new name.
|
| Modifier and Type | Method and Description |
|---|---|
void |
PullOrPushResponseJsonHandler.process(org.json.JSONObject json) |
void |
EntityStreamReaderUtil.JsonEntityResponseHandler.process(org.json.JSONObject toProcess) |
void |
BuildJsonResponseHandler.process(org.json.JSONObject json) |
| Modifier and Type | Method and Description |
|---|---|
void |
DockerAccessWithHcClient.buildImage(String image,
File dockerArchive,
boolean forceRemove,
boolean noCache) |
void |
DockerAccessWithHcClient.copyArchive(String containerId,
File archive,
String targetPath) |
String |
DockerAccessWithHcClient.createContainer(ContainerCreateConfig containerConfig,
String containerName) |
String |
DockerAccessWithHcClient.createExecContainer(String containerId,
Arguments arguments) |
String |
DockerAccessWithHcClient.getImageId(String name) |
boolean |
DockerAccessWithHcClient.hasImage(String name) |
Container |
DockerAccessWithHcClient.inspectContainer(String containerId) |
List<Container> |
DockerAccessWithHcClient.listContainers(int limit) |
void |
DockerAccessWithHcClient.pullImage(String image,
AuthConfig authConfig,
String registry) |
void |
DockerAccessWithHcClient.pushImage(String image,
AuthConfig authConfig,
String registry) |
void |
DockerAccessWithHcClient.removeContainer(String containerId,
boolean removeVolumes) |
boolean |
DockerAccessWithHcClient.removeImage(String image,
boolean... forceOpt) |
void |
DockerAccessWithHcClient.startContainer(String containerId) |
void |
DockerAccessWithHcClient.startExecContainer(String containerId,
LogOutputSpec outputSpec) |
void |
DockerAccessWithHcClient.stopContainer(String containerId,
int killWait) |
void |
DockerAccessWithHcClient.tag(String sourceImage,
String targetImage,
boolean force) |
| Modifier and Type | Method and Description |
|---|---|
DockerAccessException |
LogRequestor.getException() |
DockerAccessException |
LogGetHandle.getException() |
| Modifier and Type | Method and Description |
|---|---|
void |
BuildService.buildImage(ImageConfiguration imageConfig,
MojoParameters params,
boolean noCache)
Build an image
|
String |
RunService.createAndStartContainer(ImageConfiguration imageConfig,
PortMapping mappedPorts,
PomLabel pomLabel,
Properties mavenProps)
Create and start a container with the given image configuration.
|
String |
RunService.execInContainer(String containerId,
String command,
ImageConfiguration imageConfiguration)
Create and start a Exec container with the given image configuration.
|
Container |
QueryService.getContainer(String containerId)
Get container by id
|
Container |
QueryService.getContainerByName(String containerName)
Get a container running for a given container name.
|
String |
QueryService.getContainerName(String containerId)
Get name for single container when the id is given
|
List<Container> |
QueryService.getContainersForImage(String image)
Get all containers which are build from an image.
|
String |
QueryService.getImageId(String imageName)
Finds the id of an image.
|
Container |
QueryService.getLatestContainerForImage(String image)
Get the id of the latest container started for an image
|
boolean |
QueryService.hasContainer(String containerName)
Check whether a container with the given name exists
|
boolean |
QueryService.hasImage(String name)
Check whether the given Image is locally available.
|
boolean |
QueryService.imageRequiresAutoPull(String mode,
String imageName,
boolean always)
Check whether an image needs to be pulled.
|
void |
RunService.stopContainer(String containerId,
ImageConfiguration imageConfig,
boolean keepContainer,
boolean removeVolumes)
Stop a container immediately by id.
|
void |
RunService.stopPreviouslyStartedContainer(String containerId,
boolean keepContainer,
boolean removeVolumes)
Lookup up whether a certain has been already started and registered.
|
void |
RunService.stopStartedContainers(boolean keepContainer,
boolean removeVolumes,
PomLabel pomLabel)
Stop all registered container
|
Copyright © 2016. All Rights Reserved.