英文:
Docker image build failed: go mod download: reading https://api.bitbucket.org/2.0/repositories/***/***?fields=scm: 404 Not Found
问题
构建Docker镜像刚刚开始失败。昨天还能正常工作。
这是出现的错误:
第14/31步:运行go mod download
---> 在9dcd36a5e81b中运行
go mod download: 读取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.
答案1
得分: 4
将基础镜像中的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
to FROM golang:1.17.8-alpine as builder
fixed the issue.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论