[英]JIB is not able to detect docker credentials
I am building a generated app whith Jhipster.我正在使用 Jhipster 构建一个生成的应用程序。 I run the command to build the images and run the app containerized.我运行命令来构建图像并运行容器化的应用程序。 I started Docker Desktop on windows 11.我在 windows 11 上启动了 Docker 桌面。
To remind, this is the command: ./gradlew -Pprod bootJar jib
The output after a while is:提醒一下,这是命令: ./gradlew -Pprod bootJar jib
一段时间后 output 是:
Execution failed for task ':jib'.
> com.google.cloud.tools.jib.plugins.common.BuildStepsExecutionException: Build image failed, perhaps you should make sure your credentials for 'registr
y-1.docker.io/library/app2' 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
I tried multiple times to log in on docker:我多次尝试登录docker:
docker login registry-1.docker.io
The login is successful and the config.json
of docker content is:登录成功, config.json
的config.json内容为:
{
"auths": {
"https://index.docker.io/v1/": {},
"registry-1.docker.io": {}
},
"credsStore": "desktop"
}
I'm sure that this is where JIB
, by default looks for docker creds, but I can not see any creds here.我确定这是JIB
默认情况下查找 docker 凭据的地方,但我在这里看不到任何凭据。 It looks like the credentials are stored somewhere else, here is the version of Docker: Docker version 20.10.17, build 100c701
看起来凭证存储在其他地方,这里是 Docker 的版本: Docker version 20.10.17, build 100c701
Maybe try building offline first, probably a permission issue on the remote repository, which will need to be fixed on hub.docker.com也许先尝试离线构建,可能是远程存储库的权限问题,需要在 hub.docker.com 上修复
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.