O'Reilly logo

Docker and Kubernetes for Java Developers by Jaroslaw Krochmalski

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required