pull access denied for contos, repository does not exist or may require 'docker login': denied: requested access to the resource is denied

执行

docker build -t centos:latest 

报错

pull access denied for contos, repository does not exist or may require 'docker login': denied: requested access to the resource is denied

原因是我 dockefile文件里面的 FROM 源名字写错了 centos写成了contos,导致找不到这个源

 

因为提示存在些许误导性,故做下记录

 

posted @ 2021-08-26 16:13  php的自我修养  阅读(4332)  评论(0编辑  收藏  举报