# Dockerfile出现failure: repodata/repomd.xml from centos: [Errno 256] No more mirrors to try.yum报错

原因是yum不能使用本地形式 #yum install vsftpd /etc/vsftpd/vsftpd.conf 在此文件下添加anon_root=/opt //添加这行,设置共享目录(我这里就共享opt目录啦)前提你的opt地下得有yum所需要的文件 3.然后修改你的yum文件, docker.repo(是与Dockerfile同目录的yum文件),把你的yum路径都改成源是指向我们的doc
相关文章
相关标签/搜索