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.
Running with Maven
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:
cmd |
Command which should... |