我通常登录到docker,身份验证信息也被检查过,但是jib构建失败了。
docker login
cat ~/.docker/config.json
{
"auths": {
"https://index.docker.io/v1/": {}
},
"credsStore": "desktop"
}%码头登录成功。
// build.gradle
jib {
from {
image = "eclipse-temurin:17"
}
to {
image = "username/${project.name}:${project.version}"
tags = ["latest"]
}
}和命令./gradlew jib
错误信息
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':jib-test:jib'.
> com.google.cloud.tools.jib.plugins.common.BuildStepsExecutionException: Build image failed, perhaps you should make sure your credentials for 'registry-1.docker.io/library/eclipse-temurin' are set up correctly. See https://github.com/GoogleContainerTools/jib/blob/master/docs/faq.md#what-should-i-do-when-the-registry-responds-with-unauthorized for help发布于 2022-05-26 15:42:55
看起来像这些的复制品:
尝试完全清空config.json,或者只删除该文件。特别是,删除"https://index.docker.io/v1/"和credsStore的条目。
https://stackoverflow.com/questions/72267695
复制相似问题