Maven 项目中 8u162-jdk 的拉取访问被拒绝

pull access denied for 8u162-jdk in maven project

我在 Maven 项目中有一个 docker 文件,当我使用 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 版本时,应该使用什么图像?

尝试使用 8u222-jdk, 8u222, 8-jdk, 8 标签之一,参见 more