Running with Maven
The plugin provides two Maven goals related to starting and stopping containers. This will be docker:start
and docker:stop
. Containers are created and started with the docker:start
and stopped and destroyed with the docker:stop
. If you need to run the container during the integration tests, the typical use case will be to include those goals in Maven build phases: the docker:start
will be bound to the pre-integration-test
and docker:stop
to the post-integration-test
phase.
Plugin configuration
The plugin uses the configuration from the <run>
sub-element of the <configuration>
in the pom.xml
file. The list of the most important configuration elements is as follows:
| Command which should be executed at the end of the container's startup. If not given, the image's default command is used. |
| Entry point for the container. |
| Log configuration for whether and how log messages from the running containers should be printed. This can also configure the log driver... |