@Mojo(name="stop", defaultPhase=POST_INTEGRATION_TEST) public class StopMojo extends AbstractDockerMojo
docker:start
(i.e.
when configured for integration testing in a lifefcycle phase), then only the container
started by this goal will be stopped and removed by default (this can be tuned with the
system property docker.keepContainer
).
If this goal is called standalone, then all containers are stopped, for which images
has been configured in the pom.xmlModifier and Type | Field and Description |
---|---|
protected boolean |
autoCreateCustomNetworks
Whether to create the customs networks (user-defined bridge networks) before starting automatically
|
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 |
---|
StopMojo() |
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
@Parameter(property="docker.autoCreateCustomNetworks", defaultValue="false") protected boolean autoCreateCustomNetworks
protected void executeInternal(ServiceHub hub) throws org.apache.maven.plugin.MojoExecutionException, DockerAccessException
AbstractDockerMojo
executeInternal
in class AbstractDockerMojo
hub
- context for accessing backendsorg.apache.maven.plugin.MojoExecutionException
DockerAccessException
Copyright © 2019. All rights reserved.