@Mojo(name="remove", defaultPhase=POST_INTEGRATION_TEST) public class RemoveMojo extends AbstractDockerMojo
removeAll
(property: docker.removeAll
) also other
images can be removed.
In order to explicitely restrict the images to remove, use images
to specify a
(comma separated) list of images to remove.autoPull, CONTEXT_KEY_BUILD_TIMESTAMP, CONTEXT_KEY_LOG_DISPATCHER, CONTEXT_KEY_PREVIOUSLY_PULLED, CONTEXT_KEY_START_CALLED, DOCKER_BUILD_TIMESTAMP, dockerAccessFactory, execution, imageConfigResolver, keepContainer, log, project, registry, removeVolumes, serviceHubFactory, session, settings, skipExtendedAuth, useColor, verbose
Constructor and Description |
---|
RemoveMojo() |
Modifier and Type | Method and Description |
---|---|
protected void |
executeInternal(ServiceHub hub)
Hook for subclass for doing the real job
|
contextualize, customizeConfig, execute, getBuildTimestamp, getBuildTimestampFile, getConfiguredRegistry, getDockerAccessContext, getLogDispatcher, getLogPrefix, getPomLabel, getReferenceDate, getRegistryConfig, getResolvedImages, getVolumes, isDockerAccessRequired
protected void executeInternal(ServiceHub hub) throws DockerAccessException
AbstractDockerMojo
executeInternal
in class AbstractDockerMojo
hub
- context for accessing backendsDockerAccessException
Copyright © 2019. All rights reserved.