spotify / docker-maven-plugin

INACTIVE: A maven plugin for Docker
Apache License 2.0
2.67k stars 575 forks source link

happened an error when "mvn clean install docker:build" #396

Closed baseyou closed 5 years ago

baseyou commented 6 years ago

Description

[Add feature/bug description here]

[INFO] Building image chargerlink-monitor-web Aug 15, 2018 6:49:06 AM com.spotify.docker.client.shaded.org.apache.http.impl.execchain.RetryExec execute INFO: I/O exception (java.io.IOException) caught when processing request to {}->unix://localhost:80: Permission denied Aug 15, 2018 6:49:06 AM com.spotify.docker.client.shaded.org.apache.http.impl.execchain.RetryExec execute INFO: Retrying request to {}->unix://localhost:80 Aug 15, 2018 6:49:06 AM com.spotify.docker.client.shaded.org.apache.http.impl.execchain.RetryExec execute INFO: I/O exception (java.io.IOException) caught when processing request to {}->unix://localhost:80: Permission denied Aug 15, 2018 6:49:06 AM com.spotify.docker.client.shaded.org.apache.http.impl.execchain.RetryExec execute INFO: Retrying request to {}->unix://localhost:80 Aug 15, 2018 6:49:06 AM com.spotify.docker.client.shaded.org.apache.http.impl.execchain.RetryExec execute INFO: I/O exception (java.io.IOException) caught when processing request to {}->unix://localhost:80: Permission denied Aug 15, 2018 6:49:06 AM com.spotify.docker.client.shaded.org.apache.http.impl.execchain.RetryExec execute INFO: Retrying request to {}->unix://localhost:80 [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 14.999 s [INFO] Finished at: 2018-08-15T06:49:06Z [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal com.spotify:docker-maven-plugin:1.1.1:build (default-cli) on project chargerlink-monitor-web: Exception caught: java.util.concurrent.ExecutionException: com.spotify.docker.client.shaded.javax.ws.rs.ProcessingException: java.io.IOException: Permission denied -> [Help 1]

[Add steps on how to reproduce this issue]

What do you expect

[Describe what do you expect to happen]

when I "mvn clean install docker:build" why I don't have Permission denied?

[Describe the actual results]

Software:

17.06.2-ce

1.1.1

3.5.4

Full backtrace

[Paste full backtrace here]
belloyang commented 6 years ago

I came across the same issue. It's related with docker permission. I assume you need to add sudo when you run docker directly. I have resolved this problem by giving non-root access to running docker. https://askubuntu.com/questions/477551/how-can-i-use-docker-without-sudo

stale[bot] commented 5 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.