docker build 报错

 

docker build . 报错

Image docker.io/library/python:3.6 uses outdated schema1 manifest format. Please upgrade to a schema2 image for better future compa3.6: 
Pulling from library/pythontps://docs.docker.com/registry/spec/deprecated-schema-v1/

修复方式

vim /etc/resolv.conf

# Generated by NetworkManager
search openstacklocal
nameserver 192.168.0.150
nameserver 8.8.8.8 #添加一条这个
~                             

重启docker 

systemctl restart docker

这样就可以了

posted on 2020-06-03 11:31  王大拿  阅读(707)  评论(0编辑  收藏  举报

导航