spring-guides / gs-spring-boot-docker

Spring Boot with Docker :: Learn how to create a Docker container from a Spring Boot application with Maven or Gradle

Home Page:https://spring.io/guides/gs/spring-boot-docker/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

build failure 'permission denied'

grimace opened this issue · comments

env:
Ubuntu 18
Apache Maven 3.3.9
openjdk version "1.8.0_181"
Docker version 17.03.2-ce, build f5ec1e2

I can run install, but when I run:
mvn install dockerfile:build

I get these errors:
Sep 16, 2018 2:51:42 PM org.apache.http.impl.execchain.RetryExec execute INFO: I/O exception (java.io.IOException) caught when processing request to {}->unix://localhost:80:

Permission denied Sep 16, 2018 2:51:42 PM org.apache.http.impl.execchain.RetryExec execute INFO: Retrying request to {}->unix://localhost:80 Sep 16, 2018 2:51:42 PM org.apache.http.impl.execchain.RetryExec execute INFO: I/O exception (java.io.IOException) caught when processing request to {}->unix://localhost:80:

Permission denied Sep 16, 2018 2:51:42 PM org.apache.http.impl.execchain.RetryExec execute INFO: Retrying request to {}->unix://localhost:80 Sep 16, 2018 2:51:42 PM org.apache.http.impl.execchain.RetryExec execute INFO: I/O exception (java.io.IOException) caught when processing request to {}->unix://localhost:80:

Permission denied Sep 16, 2018 2:51:42 PM org.apache.http.impl.execchain.RetryExec execute INFO: Retrying request to {}->unix://localhost:80 [WARNING] An attempt failed, will retry 1 more times

any ideas?

guess I needed 'sudo'