当前位置:   article > 正文

安装docker_vm 安装docker could not resolve host: mirrors.bupt.e

vm 安装docker could not resolve host: mirrors.bupt.edu.cn; unknown error

1、安装docker,通过yum install docker安装

如果出现错误可以使用:先清除yum缓存 yum clean all     yum makecache

检查是否网络问Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=7&arch=x86_64&repo=os&infra=stock error was 14: curl#6 - "Could not resolve host: mirrorlist.centos.org; Unknown error"

方法一、

  1、打开 vi /etc/sysconfig/network-scripts/ifcfg-eth0(每个机子都可能不一样,但格式会是“ifcfg-eth数字”),把ONBOOT=no,改为ONBOOT=yes

  2、重启网络:service network restart

方法二、

  1、打开 vi /etc/resolv.conf,增加 nameserver 8.8.8.8

  2、重启网络: service network restart


声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/我家自动化/article/detail/818962
推荐阅读
相关标签
  

闽ICP备14008679号