Home

Awesome

docker-maven-plugin

Maven Central Circle CI Coverage Technical Debt

This is a Maven plugin for building Docker images and managing containers for integration tests. It works with Maven 3.0.5 and Docker 1.6.0 or later.

Goals

GoalDescriptionDefault Lifecycle Phase
docker:startCreate and start containerspre-integration-test
docker:stopStop and destroy containerspost-integration-test
docker:buildBuild imagesinstall
docker:watchWatch for doing rebuilds and restarts
docker:pushPush images to a registrydeploy
docker:removeRemove images from local docker hostpost-integration-test
docker:logsShow container logs
docker:sourceAttach docker build archive to Maven projectpackage
docker:saveSave image to a file
docker:volume-createCreate a volume to share data between containerspre-integration-test
docker:volume-removeRemove a created volumepost-integration-test
docker:copyCopy files and directories from a containerpost-integration-test

Documentation

Docker API Support