I am trying to use Fabric8 to build an image for my Java application. However, I am new and this could be a duplicate question.
I have docker installed and the fabric8 library added via maven.
Below is my initial setup for the fabric maven plugin.
<plugin>
<groupId>io.fabric8</groupId>
<artifactId>docker-maven-plugin</artifactId>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>build</goal>
</goals>
<configuration>
<dockerHost>/var/run/docker.sock</dockerHost>
<images>
<image>
<alias>${project.artifactId}</alias>
<name></name>
<build>
<from>java:8</from>
<maintainer>${project.maintainer}</maintainer>
<dockerFile>${project.basedir}/Dockerfile</dockerFile>
<dockerHost>/var/run/docker.sock</dockerHost>
<ports>
<port>8080</port>
<port>8081</port>
</ports>
</build>
</image>
</images>
</configuration>
</execution>
</executions>
</plugin>
Below is the error message I am getting.
Unable to parse configuration of mojo io.fabric8:docker-maven-plugin:0.30.0:build for parameter dockerHost: Cannot find 'dockerHost' in class io.fabric8.maven.docker.config.BuildImageConfiguration