# Error run or build docker-image

**URL:** <https://community.bloomreach.com/t/error-run-or-build-docker-image/2521>\
**Category:** Experience Manager (PaaS/OnPrem)\
**Created:** [April 12, 2021, 2:04pm UTC](https://community.bloomreach.com/t/error-run-or-build-docker-image/2521 "2021-04-12T14:04:32Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Thomas](https://yyz1.discourse-cdn.com/flex027/user_avatar/community.bloomreach.com/thomas/32/753_2.png) [@Thomas](https://community.bloomreach.com/u/Thomas)\
**Post date:** [April 12, 2021, 2:04pm UTC](https://community.bloomreach.com/t/error-run-or-build-docker-image/2521/1 "2021-04-12T14:04:32Z")

</div>

I made a fresh download of brxM 14.4.0.  
When I run `mvn -P docker.build` I get the following error:

```
    Failed to execute goal io.fabric8:docker-maven-plugin:0.35.0:build (Build docker container) on project testproject: Unable to pull 'tomcat:9-jdk8-openjdk-slim' : {"message":"Head https://registry-1.d
ocker.io/v2/library/tomcat/manifests/9-jdk8-openjdk-slim: unauthorized: incorrect username or password"} (Internal Server Error: 500) -> [Help 1]

```

When I run `mvn -P docker.run` I get the folowing error:

```
[INFO] --- docker-maven-plugin:0.35.0:remove (Delete docker image) @ testproject ---
[ERROR] DOCKER> Multiple assemblies use the name %s. Please assign each assembly a unique name.

```

and with version 0.28 of docker-maven-plugin I recive the following error:

```
[INFO] --- docker-maven-plugin:0.28.0:remove (Delete docker image) @ testproject ---
[ERROR] DOCKER> Cannot create docker access object [Connect to localhost:2375 
[localhost/127.0.0.1, localhost/0:0:0:0:0:0:0:1] failed: Connection refused: connect]

```

and when I activate the option `Expose daemon on tcp://localhost:2375 without TLS` in docker desktop setting I get the following error:

```
[ERROR] Failed to execute goal io.fabric8:docker-maven-plugin:0.28.0:build (Build docker dev container) on project testproject: Unable to pull 'org.lienas/testproject:0.1.0-SNAPSHO
T' from registry 'org.lienas' : {"message":"Get https://org.lienas/v2/: dial tcp: lookup org.lienas on 192.168.65.5:53: no such host"} (Internal Server Error: 500) -> [Help 1]
[ERROR]

```

**Any suggestions ??**

---

<div class="post-metadata">

**Author:** ![Thomas](https://yyz1.discourse-cdn.com/flex027/user_avatar/community.bloomreach.com/thomas/32/753_2.png) [@Thomas](https://community.bloomreach.com/u/Thomas)\
**Post date:** [April 14, 2021, 7:32am UTC](https://community.bloomreach.com/t/error-run-or-build-docker-image/2521/2 "2021-04-14T07:32:01Z")

</div>

I made some further investigations. I ran the docker.run target from a Linux machine- there I got the following error:

```
[ERROR] Failed to execute goal on project testproject: Could not resolve dependencies for project org.lienas:testproject:pom:0.1.0-SNAPSHOT: Failed to collect dependencies at org.lienas:testproject-essent
ials:war:0.1.0-SNAPSHOT: Failed to read artifact descriptor for org.lienas:testproject-essentials:war:0.1.0-SNAPSHOT: Could not transfer artifact org.lienas:testproject-essentials:pom:0.1.0-SNAPSHOT from/
to hippo-maven2-enterprise (https://maven.onehippo.com/maven2-enterprise/): Not authorized -> [Help 1]

```

**Do I need an enterprise license to run brxM in a Docker Container ?**

---

<div class="post-metadata">

**Author:** ![machak](https://yyz1.discourse-cdn.com/flex027/user_avatar/community.bloomreach.com/machak/32/1298_2.png) [@machak](https://community.bloomreach.com/u/machak)\
**Post date:** [April 16, 2021, 12:42pm UTC](https://community.bloomreach.com/t/error-run-or-build-docker-image/2521/3 "2021-04-16T12:42:54Z")

</div>

that maven plugin profile never worked for me for some reason…well, never is exaggerated but it was always throwing some errors. I would suggest to follow this recipe:

[https://hub.docker.com/r/openweb/hippo](https://hub.docker.com/r/openweb/hippo)

---

<div class="post-metadata">

**Author:** ![Thomas](https://yyz1.discourse-cdn.com/flex027/user_avatar/community.bloomreach.com/thomas/32/753_2.png) [@Thomas](https://community.bloomreach.com/u/Thomas)\
**Post date:** [April 16, 2021, 1:10pm UTC](https://community.bloomreach.com/t/error-run-or-build-docker-image/2521/4 "2021-04-16T13:10:34Z")

</div>

Thx for your response- I will try this over the weekend and report the result here!

---

<div class="post-metadata">

**Author:** ![Mort365](https://avatars.discourse-cdn.com/v4/letter/m/f08c70/32.png) [@Mort365](https://community.bloomreach.com/u/Mort365)\
**Post date:** [April 19, 2021, 10:29am UTC](https://community.bloomreach.com/t/error-run-or-build-docker-image/2521/5 "2021-04-19T10:29:38Z")

</div>

Hi, in your main POM file, you will need to specify this property

\<docker.maven.plugin.version\>0.33.0\</docker.maven.plugin.version\>

This then overides and the default version as there are known issues with it.

thanks  
J

---

<div class="post-metadata">

**Author:** ![Thomas](https://yyz1.discourse-cdn.com/flex027/user_avatar/community.bloomreach.com/thomas/32/753_2.png) [@Thomas](https://community.bloomreach.com/u/Thomas)\
**Post date:** [April 19, 2021, 11:08am UTC](https://community.bloomreach.com/t/error-run-or-build-docker-image/2521/6 "2021-04-19T11:08:10Z")

</div>

Hi J,

it works with version 33- thx.  
I tried the newer version 35 - what not worked ☹

TLC

---

<div class="post-metadata">

**Author:** ![Mort365](https://avatars.discourse-cdn.com/v4/letter/m/f08c70/32.png) [@Mort365](https://community.bloomreach.com/u/Mort365)\
**Post date:** [April 19, 2021, 11:52am UTC](https://community.bloomreach.com/t/error-run-or-build-docker-image/2521/7 "2021-04-19T11:52:08Z")

</div>

Awesome glad to help out.

J
