-4 --net my-network registry.cn-shanghai.aliyuncs.com/public-namespace/cr7-centos7-tool:v2 查看容器centos ,可以看到nameserver添加的IP为127.0.0.11的Embedded DNS: #/etc/hosts中没有配置对方的host记录 [root@host1 ~]# docker exec centos -4 cat /etc/resolv.conf nameserver 127.0.0.11 options ndots:0 此时centos-3和centos-4可以互相解析: [root@host1 ~]# docker exec centos-4 ping centos-3 PING centos-3 (172.19.0.2) 56(84) bytes of data. 64 bytes from -4 PING centos-4 (172.19.0.3) 56(84) bytes of data. 64 bytes from centos-4.my-network (172.19.0.3): icmp_seq
64 RPMs CentOS CentOS RHEL 30 Nov 2020 CentOS-5 5.10 i386 x86_64 RPMs CentOS CentOS RHEL 31 Mar 2017 CentOS
CentOS-Base.repo资源库配置文件各项的详细含义: [root@localhost ~]#vim /etc/yum.repos.d/CentOS-Base.repo [base] name=CentOS name=CentOS-4 - Updates baseurl=http://mirror.centos.org/centos/4/updates/$basearch/ gpgcheck=1 gpgkey 密钥的地址 #packages used/produced in the build but not released #本段指定的是尚未发布的软件包部分(addons)配置 [addons] name=CentOS RPM-GPG-KEY-centos4 #additional packages that may be useful #本段指定的是有用的额外软件包部分(extras)配置 [extras] name=CentOS packages that extend functionality of existing packages #本段指定的是扩展的额外软件包部分(centosplus)配置 [centosplus] name=CentOS
之后 node 节点的状态依然是 NotReady 定位和解决方案如下: 查看 node 节点日志 cat /var/log/messages,可以看到类似如下日志: Mar 21 14:43:01 centos 4742 cni.go:237] Unable to update cni config: no networks found in /etc/cni/net.d Mar 21 14:43:03 centos