There is docker-maven plugin available. In fact, there is more than one available. I found seven when I went looking, and there are probably more now. At the time of writing this book, all of the plugins suffered from one fatal flaw—they didn't support Linux sockets. This means that they are only really useful if you are running boot2docker at the moment. This really isn't ideal, but it's still worth investigating how we can use them. The first one that I tried that really met my needs was the one written by Wouter Danes, but unfortunately the project is no longer active. As a result, I've had to switch and the fabric8 one seems to meet my current needs (see https://github.com/fabric8io/docker-maven-plugin).
We are going to base this Maven implementation off the shell scripts that we wrote previously:
<plugin...