解决报错
docker build -t xxxxxx/lua:v5.1 .
[+] Building 0.1s (3/3) FINISHED
=> [internal] load build definition from Dockerfile 0.0s
=> => transferring dockerfile: 36B 0.0s
=> [internal] load .dockerignore 0.0s
=> => transferring context: 2B 0.0s
=> ERROR [internal] load metadata for docker.io/library/debian:stable-20230109-slim 0.1s
------
> [internal] load metadata for docker.io/library/debian:stable-20230109-slim:
------
failed to solve with frontend dockerfile.v0: failed to create LLB definition: unexpected status code [manifests stable-20230109-slim]: 403 Forbidden
docker build -t xxxxxx/lua:v5.1 .
Sending build context to Docker daemon 2.048kB
只需在我们的docker配置中添加以下配置项,并重启docker即可解决
"features": {
"buildkit": false
},
它发生在构建过程中,它是 buildkit 中的一个错误,考虑到 buildkit 仍然不稳定。如果你在 Mac/Windows 上使用 Docker 桌面,你可能还必须在“Docker Engine”json 配置中禁用它。 Docker 桌面 -> 设置 -> Docker 引擎 ->“features”: { buildkit: true}将"features": { buildkit: false}.
请注意,这不是修复,这是一种解决方法,直到 docker 团队中的某个人实施了正确的修复。请在 buildkit 更稳定时再试一次。
评论(0)