我在 maven 项目中有一个 dockerfile,当我使用 docker 基础映像8u162-jdk时,我在构建中出现此错误。
当我使用openjdk:8u131-jdk-alpine时,构建工作正常,但我需要将 JDK 版本更改为8u162。
Step 1/15 : FROM 8u162-jdk
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 01:03 min
[INFO] Finished at: 2019-08-23T14:26:57Z
[INFO] Final Memory: 82M/420M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.spotify:docker-maven-plugin:0.4.13:build (build-image) on project app-back: Exception caught: pull access denied for 8u162-jdk, repository does not exist or may require 'docker login' -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
[Pipeline] error
[Pipeline] step
Recording test results
[Pipeline] }
如何解决这个问题?当我们想要 JDK 的 8u162 版本时,使用什么正确的镜像?