gpt4 book ai didi

spring-boot - docker 存储库名称组件必须匹配

转载 作者:IT老高 更新时间:2023-10-28 12:44:49 27 4
gpt4 key购买 nike

我正在尝试使用此插件构建我的图像:https://github.com/spotify/docker-maven-plugin#use-a-dockerfile

当我运行 mvn clean package docker:build

我收到此错误:

[ERROR] Failed to execute goal com.spotify:docker-maven-plugin:0.2.3:build (defa
ult-cli) on project demo: Exception caught: Request error: POST https://192.168.
99.100:2376/v1.12/build?t=DevOpsClient: 500: HTTP 500 Internal Server Error -> [
Help 1]

当我检查 docker 守护进程日志时,我看到了:

Handler for POST /build returned error: repository name component must match \"[a-z0-9]+(?:[._-][a-z0-9]+)*\"" statusCode=500

这是命名约定的文档:https://docs.docker.com/registry/spec/api/

显然你不能有任何大写字母。

我正在尝试按照本指南使用 Spring Boot 进行构建:https://spring.io/guides/gs/spring-boot-docker/

我正在使用 Spring Boot 的 SNAPSHOT 版本,并且我有一个名为 demo-0.1.1-SNAPSHOT 的目录。我相信这可能会导致问题。

我也在 windows 上工作,我的项目目录路径如下:

C:\Users\myname\UserRegistrationClient\git\..... etc

这也会影响存储库命名约定吗?

我将如何改变它?

最佳答案

所以这个正则表达式:[a-z0-9]+(?:[._-][a-z0-9]+)* 不包含任何大写字母。所以你应该将你的图像名称更改为 devopsclient

关于spring-boot - docker 存储库名称组件必须匹配,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32014089/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com