运维|Docker
docker,外网
运维-Docker
鲜花销售店网站源码,ubuntu开机没有选项,爬虫支付宝,php技术总监一般面试什么技术,上虞seo推广lzw
问题描述:
来路网址导航源码,vscode好在哪里,ubuntu修改apk,tomcat启动 闪退,身上 爬虫,php 默认方法,seo双标题api接口,部队网站源码免费下载,个人网站模板源码下载lzw
今天在docker搭建redis环境的时候,发现yum拉取不到资源,上不到网,报了如下错误:
171cms源码,ubuntu 安装c环境,爬虫在windows应用,php单列,枣强seo优化lzw
/centos/6.10/extras/x86_64/Packages/epel-release-6-8.noarch.rpm: [Errno 14] PYCURL ERROR 6 - "Couldn resolve host \"Trying other mirror.http://mirrors./centos/6.10/extras/x86_64/Packages/epel-release-6-8.noarch.rpm: [Errno 14] PYCURL ERROR 6 - "Couldn resolve host mirrors.\"Trying other mirror.http://mirrors./centos/6.10/extras/x86_64/Packages/epel-release-6-8.noarch.rpm: [Errno 14] PYCURL ERROR 6 - "Couldn resolve host mirrors.\"Trying other mirror.http://mirrors./centos/6.10/extras/x86_64/Packages/epel-release-6-8.noarch.rpm: [Errno 14] PYCURL ERROR 6 - "Couldn resolve host mirrors.\"Trying other mirror./centos/6.10/extras/x86_64/Packages/epel-release-6-8.noarch.rpm: [Errno 14] PYCURL ERROR 6 - "Couldn resolve host \"Trying other mirror.http://mirrors.tuna./centos/6.10/extras/x86_64/Packages/epel-release-6-8.noarch.rpm: [Errno 14] PYCURL ERROR 6 - "Couldn resolve host mirrors.tuna.\"Trying other mirror.http://mirrors./centos/6.10/extras/x86_64/Packages/epel-release-6-8.noarch.rpm: [Errno 14] PYCURL ERROR 6 - "Couldn resolve host mirrors.\"Trying other mirror.
解决过程:
1、测试wget
wget /.help/CentOS6-Base-163.repo
结果报错
unknown host
2、测试ping
在容器内部
ping
结果还是失败
ping: unknown host
多开一个终端,进入主机(不是进入容器),进行ping命令测试发现是OK的,基本可以确定是docker的问题了,而不是网络问题。
解决方法:
停止所有容器,重启docker即可。
service docker restart
完成!
推荐教学:docker教学