Debug docker: failed to solve with frontend dockerfile.v0: failed to resolve dockerfile: failed to b

问题 1

Debug docker: failed to solve with frontend dockerfile.v0: failed to resolve dockerfile: failed to b_第1张图片

解决

  • 首先确保Dockerfile的命名没有错误,有人把f小写可以改正
  • 确保Dockerfile书写正确,可以先从简单的copy试一下 (我这里第一行写错了 : 去掉注释
FROM registry.cn-shenzhen.aliyuncs.com/tcc-public/python:3  ## 从天池基础镜像构建

问题 2

“docker build” requires exactly 1 argument.
Debug docker: failed to solve with frontend dockerfile.v0: failed to resolve dockerfile: failed to b_第2张图片

解决

最后有一个点 别漏了

sudo docker build -f /Dockerfile -t registry.cn-shenzhen.aliyuncs.com/yuetan/earth:01 .

问题 3

failed to solve with frontend dockerfile.v0: failed to build LLB: failed to load cache key: pull access denied, repository does not exist or may require authorization: server message: insufficient_scope: authorization failed
Debug docker: failed to solve with frontend dockerfile.v0: failed to resolve dockerfile: failed to b_第3张图片

解决

虽然我选择阿里云的地址是深圳,可是from基础镜像的时候还是要选择上海
在这里插入图片描述

你可能感兴趣的:(数据科学工程,阿里云)