Ubuntu16.04 Docker pull connection refused 해결 방법

3849 단어 용기 기술

Ubuntu에 DNS가 설정되어 있는지 확인하고 확인합니다.


Ubuntu DNS 구성 방법
interfaces 방식 수정/etc/network/interfaces, DNS를 설정하려면 이 파일에 가입해야 합니다
dns-nameserver xx.xx.xx.xx
dns-nameserver xxx.xxx.xx.xx
dns-nameservers xxx.xxx.xxx.xxx xxx.xxx.xx.xxx

• dns-nameserver: DNS 주소를 지정합니다. 여러 개의 DNS를 지정하려면 여러 줄을 추가해야 합니다.ns-nameservers: 여러 개의 DNS 주소를 지정하고 빈칸으로 구분합니다.컴퓨터를 다시 시작해야만 효력이 발생한다
resolvconf 방식으로 DNS를 수정하는 것은/etc/resolvconf/resolv를 수정합니다.conf.d/base, 파일에 추가
nameserver xxx.xxx.xx.xxx
nameserver xx.xx.xx.xx

• nameserver: 여러 개의 DNS 기록이 있을 때 각 DNS 기록이 한 줄을 차지하는 DNS 주소를 지정합니다.
sudo resolvconf -u      # /etc/resolv.conf 

Ubuntu 국내 소스 교체


천조에서 외국의 인터넷 주소를 사용하는 데는 늘 많은 시련을 겪었는데, 여기서는 국외원을 국내원으로 바꾸어 참고하였다.https://blog.csdn.net/shana_8/article/details/81482950원래 소스 백업
sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak1

아리원으로 교체
sudo gedit /etc/apt/sources.list

deb http://mirrors.aliyun.com/ubuntu/ trusty main restricted universe multiverse  
deb http://mirrors.aliyun.com/ubuntu/ trusty-security main restricted universe multiverse  
deb http://mirrors.aliyun.com/ubuntu/ trusty-updates main restricted universe multiverse  
deb http://mirrors.aliyun.com/ubuntu/ trusty-proposed main restricted universe multiverse  
deb http://mirrors.aliyun.com/ubuntu/ trusty-backports main restricted universe multiverse  
deb-src http://mirrors.aliyun.com/ubuntu/ trusty main restricted universe multiverse  
deb-src http://mirrors.aliyun.com/ubuntu/ trusty-security main restricted universe multiverse  
deb-src http://mirrors.aliyun.com/ubuntu/ trusty-updates main restricted universe multiverse  
deb-src http://mirrors.aliyun.com/ubuntu/ trusty-proposed main restricted universe multiverse  
deb-src http://mirrors.aliyun.com/ubuntu/ trusty-backports main restricted universe
multiverse

업데이트 소스
sudo apt-get update

이럴 때 도커 폴이 정상이라는 걸 알게 될 거예요.

좋은 웹페이지 즐겨찾기