295 Star 1.8K Fork 235

GVP泰晓科技/Linux Lab

Could not resolve host: gitee.com

已完成
创建于  
2020-09-29 19:56

输入图片说明

环境:

$ tools/docker/env 
Product: Intel Corporation, 440BX Desktop Reference Platform, VMware Virtual Platform
ARCH: x86_64
CPU: 4 x Intel(R) Core(TM) i5-4590 CPU @ 3.30GHz
RAM: 3921 MiB
System: Ubuntu 16.04.7 LTS, xenial
Kernel: Linux 4.15.0-118-generic
Docker: Docker version 19.03.13, build 4484c46d9d
Shell: /bin/bash 4.3.48(1)-release

评论 (5)

halfprog 创建了任务 5年前
halfprog 关联仓库设置为泰晓科技/Linux Lab 5年前
展开全部操作日志

下面是我尝试过的办法:
1、/etc/docker/daemon.json 中添加dns配置无作用

$ cat /etc/docker/daemon.json 
{
  "registry-mirrors": ["https://emlqy3ue.mirror.aliyuncs.com"],
  "dns": ["223.5.5.5"]
}

2、/etc/default/docker中添加dns无作用

DOCKER_OPTS="$DOCKER_OPTS --dns 223.5.5.5 --dns 223.6.6.6 --dns 180.76.76.76     --dns 114.114.114.114"     

我ping gitee.com和baidu.com的ip都能ping通,

这是docker的/etc/resolv.conf:

ubuntu@linux-lab:/labs/linux-lab$ cat /etc/resolv.conf 
search localdomain
nameserver 127.0.0.11
options ndots:0

这是host的/etc/resolv.conf :

$ cat /etc/resolv.conf 
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
#     DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
nameserver 127.0.1.1
search localdomain

刚刚试了,将docker的/etc/resolv.conf改成和host的完全一样,也不行。

5069540 wuzhangjin 1594531572 falcon 拥有者 5年前
falcon 任务状态待办的 修改为进行中 5年前
5069540 wuzhangjin 1594531572 falcon 拥有者 5年前

经沟通确认是企业内部网络防火墙等配置问题,家庭网络 ok,暂时关闭该问题。

falcon 任务状态进行中 修改为已完成 5年前

登录 后才可以发表评论

状态
负责人
里程碑
Pull Requests
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
开始日期   -   截止日期
-
置顶选项
优先级
参与者(3)
halfprog-halfprog 4927339 enjoy2012 1603040040 5069540 wuzhangjin 1594531572
Shell
1
https://gitee.com/tinylab/linux-lab.git
git@gitee.com:tinylab/linux-lab.git
tinylab
linux-lab
Linux Lab

搜索帮助