
저는 Windows에서 docker 데몬을 실행하고 있으며 내 사용자 이름과 비밀번호를 사용하여 프록시를 사용하도록 데몬을 구성했습니다. Docker 허브에서 이미지를 성공적으로 가져왔지만 ubuntu:latest
컨테이너를 SSH로 연결하고 시도하자마자 apt update
작동하지 않았습니다. 흥미로운 점은 Ubuntu Repo 서버에 직접 연결을 시도했다는 것입니다.
그런 다음 파일을 구성 apt.conf
하고 프록시를 사용하기 시작했지만 어떤 이유로 인증이 실패했습니다. 구문과 비밀번호가 올바른지 확인하고 다시 확인했습니다.
파일을 제거 apt.conf
하고 프록시 http_proxy
와 https_proxy
환경 변수를 구성했지만 여전히 동일합니다. 인증 실패.
두 가지를 모두 사용해 보았지만 다시 인증 실패가 발생했습니다. 이것이 내가 얻는 것입니다:
root@24e4053eeaf4:/etc/apt# apt update
Err:1 http://archive.ubuntu.com/ubuntu bionic InRelease
407 Proxy Authentication Required [IP: <IP> 8080]
Err:2 http://security.ubuntu.com/ubuntu bionic-security InRelease
407 Proxy Authentication Required [IP: <IP> 8080]
Err:3 http://archive.ubuntu.com/ubuntu bionic-updates InRelease
407 Proxy Authentication Required [IP: <IP> 8080]
Err:4 http://archive.ubuntu.com/ubuntu bionic-backports InRelease
407 Proxy Authentication Required [IP: <IP> 8080]
Reading package lists... Done
N: See apt-secure(8) manpage for repository creation and user configuration details.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
E: The repository 'http://archive.ubuntu.com/ubuntu bionic InRelease' is not signed.
E: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/bionic/InRelease 407 Proxy Authentication Required [IP: <IP> 8080]
N: See apt-secure(8) manpage for repository creation and user configuration details.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
E: The repository 'http://security.ubuntu.com/ubuntu bionic-security InRelease' is not signed.
E: Failed to fetch http://security.ubuntu.com/ubuntu/dists/bionic-security/InRelease 407 Proxy Authentication Required [IP: <IP> 8080]
E: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/bionic-updates/InRelease 407 Proxy Authentication Required [IP: <IP> 8080]
E: The repository 'http://archive.ubuntu.com/ubuntu bionic-updates InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/bionic-backports/InRelease 407 Proxy Authentication Required [IP: 10.137.20.70 8080]
E: The repository 'http://archive.ubuntu.com/ubuntu bionic-backports InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
어떤 아이디어?