public class ContainerTracker extends Object
docker:start
and docker:stop
are used in the same runConstructor and Description |
---|
ContainerTracker() |
Modifier and Type | Method and Description |
---|---|
String |
lookupContainer(String lookup)
Lookup a container by name or alias from the tracked containers
|
void |
registerContainer(String containerId,
ImageConfiguration imageConfig,
PomLabel pomLabel)
Register a started container to this tracker
|
io.fabric8.maven.docker.service.ContainerTracker.ContainerShutdownDescriptor |
removeContainer(String containerId)
Remove a container from this container (if stored) and return its descriptor
|
Collection<io.fabric8.maven.docker.service.ContainerTracker.ContainerShutdownDescriptor> |
removeShutdownDescriptors(PomLabel pomLabel)
Get all shutdown descriptors for a given pom label and remove it from the tracker.
|
public void registerContainer(String containerId, ImageConfiguration imageConfig, PomLabel pomLabel)
containerId
- container id to registerimageConfig
- configuration of associated imagepomLabel
- pom label to identifying the reactor project where the container was createdpublic io.fabric8.maven.docker.service.ContainerTracker.ContainerShutdownDescriptor removeContainer(String containerId)
containerId
- id to removenull
public String lookupContainer(String lookup)
lookup
- name or alias of the container to lookupnull
public Collection<io.fabric8.maven.docker.service.ContainerTracker.ContainerShutdownDescriptor> removeShutdownDescriptors(PomLabel pomLabel)
pomLabel
- the label for which to get the descriptors or null
for all descriptorsCopyright © 2019. All rights reserved.