reissseb opened a new issue, #909: URL: https://github.com/apache/maven-mvnd/issues/909
I am using the Maven plugin `dockerfile-maven-plugin` to build a Docker image for a maven module. To build the image I just run `mvn package`. I have to login to the company registry once with `docker login` before running the Maven build for the first time. After that I don't have to do anything anymore. `mvn package` is enough to build my image. But that doesn't work with `mvnd package`: ```bash [INFO] --- dockerfile:1.4.13:build (package) @ <module> --- [INFO] Google Container Registry support is disabled [INFO] dockerfile: <path>/target/Dockerfile [INFO] contextDirectory: <path>/<module> [INFO] Building Docker context <path>/<module> [INFO] Path(dockerfile): <path>/<module>/target/Dockerfile [INFO] Path(contextDirectory): <path>/<module> [INFO] [INFO] Image will be built as <company-registry-url>/<registry-path>/<module-name>:<version> [INFO] [INFO] Step 1/20 : FROM <company-registry-url>/eclipse-temurin:17.0.8_7-jre-alpine [INFO] [ERROR] Head "<company-registry-url>/eclipse-temurin/manifests/17.0.8_7-jre-alpine": unknown: Authentication is required [WARNING] An attempt failed, will retry 1 more timesorg.apache.maven.plugin.MojoExecutionException: Could not build image [omitted stack trace] Failed to execute goal com.spotify:dockerfile-maven-plugin:1.4.13:build (package) on project <module> Could not build image: Head "<company-url>/eclipse-temurin/manifests/17.0.8_7-jre-alpine": unknown: Authentication is required -> [Help 1] ``` It looks a bit like, that `mvnd` doesn't use the local docker daemon to build the image The problem sounds similar to https://github.com/apache/maven-mvnd/issues/157 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: issues-unsubscr...@maven.apache.org.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org