简体   繁体   English

JIB 无法检测到 docker 凭据

[英]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.

相关问题 java maven docker jib 发布端口失败 - java maven docker jib published port fails 使用 Jib 获取特定版本的图像(Maven、Docker、testcontainers) - Getting a specific version of an image with Jib (Maven, Docker, testcontainers) 如何设置 Jib 容器以使用 docker 远程注册表进行身份验证以拉取图像? - How to setup Jib container to authenticate with docker remote registry to pull images? 离线使用 jib maven 插件构建 docker 容器的问题 - Problem with using jib maven plugin offline for building docker container 使用jib创建docker镜像时401 Unauthorized - 401 Unauthorized when using jib to create docker image 带有 docker-compose 应用程序的 Google Jib,在将映像重建到 Docker 守护程序后重新启动应用程序的快速方法 - Google Jib with docker-compose application, Fast way to restart application after rebuild image to Docker daemon golang项目是否有任何替代JIB,它使用dockerfile创建docker图像 - Is there any alternative of JIB for golang project, which creates the docker image withour using dockerfile 使用自定义基础图像使用 jib 构建 docker 图像时出现未经授权的错误 - Unauthorized error when build docker image with jib, using a custom base image 使用 Jib 插件的 Docker 图像:容器运行时无法在本地命中 rest 端点? - Docker image using Jib plugin: Cant hit rest endpoint locally when container running? Maven JIB:创建 Docker 图像,POM.xml 中定义的多次执行? - Maven JIB: Creating Docker images, multiple executions defined in POM.xml?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM