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
이럴 때 도커 폴이 정상이라는 걸 알게 될 거예요.
이 내용에 흥미가 있습니까?
현재 기사가 여러분의 문제를 해결하지 못하는 경우 AI 엔진은 머신러닝 분석(스마트 모델이 방금 만들어져 부정확한 경우가 있을 수 있음)을 통해 가장 유사한 기사를 추천합니다:
Ubuntu16.04 Docker pull connection refused 해결 방법Ubuntu에 DNS가 설정되어 있는지 확인하고 확인합니다. Ubuntu DNS 구성 방법 interfaces 방식 수정/etc/network/interfaces, DNS를 설정하려면 이 파일에 가입해야 합니다 • ...
텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
CC BY-SA 2.5, CC BY-SA 3.0 및 CC BY-SA 4.0에 따라 라이센스가 부여됩니다.