Docker 镜像构建失败:go mod 下载:阅读 https://api.bitbucket.org/2.0/repositories/***/***?fields=scm: 404 Not Found
Docker镜像的构建刚刚开始失败。昨天还在工作。
这是出现的错误:
Step 14/31 : RUN go mod download
---> Running in 9dcd36a5e81b
go mod download: reading https://api.bitbucket.org/2.0/repositories/***/***?fields=scm: 404 Not Found
注意:由于隐私原因,***
被替换为工作区/项目名称和存储库名称。
Building of Docker image started to fail just now. It was working yesterday.
This is the error coming:
Step 14/31 : RUN go mod download
---> Running in 9dcd36a5e81b
go mod download: reading https://api.bitbucket.org/2.0/repositories/***/***?fields=scm: 404 Not Found
Note: ***
is replaced for workspace/project name and repository name due to privacy.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
将基础镜像中的 go 版本从
FROM golang:1.17.3-alpine as builder
更新为FROM golang:1.17.8-alpine as builder
修复了该问题。Updating the go version in the base image from
FROM golang:1.17.3-alpine as builder
toFROM golang:1.17.8-alpine as builder
fixed the issue.