问题描述

使用docker生成镜像出现问题

[+] Building 0.2s (3/3) FINISHED
 => [internal] load build definition from Dockerfile                                                               0.0s
 => => transferring dockerfile: 262B                                                                               0.0s
 => [internal] load .dockerignore                                                                                  0.0s
 => => transferring context: 2B                                                                                    0.0s
 => ERROR [internal] load metadata for docker.io/library/python:3.6.8                                              0.1s
------
 > [internal] load metadata for docker.io/library/python:3.6.8:
------
failed to solve with frontend dockerfile.v0: failed to create LLB definition: unexpected status code [manifests 3.6.8]: 403 Forbidden

解决方案:

将Docker Desktop中的Decker Engine的buildkit配置将其设置为false即可。

在这里插入图片描述

Logo

权威|前沿|技术|干货|国内首个API全生命周期开发者社区

更多推荐