docker build -t my_image
CatDocker 파일
FROM debian:7.11
COPY sources.list /etc/apt/sources.list
#RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 46925553
ENTRYPOINT [ "tail", "-f", "/dev/null" ]
고양이 소스.목록
deb [trusted=yes] http://archive.debian.org/debian/ wheezy main contrib non-free
docker run -d my_image
debian$docker exec -ti 15c213123 /bin/sh
#apt-key list
gpg: Segmentation fault caught ... exiting
Segmentation fault
#apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 46925553
Executing: gpg --ignore-time-conflict --no-options --no-default-keyring --secret-keyring /tmp/tmp.HhlRvZl44h --trustdb-name /etc/apt//trustdb.gpg --keyring /etc/apt/trusted.gpg --primary-keyring /etc/apt/trusted.gpg --keyring /etc/apt/trusted.gpg.d//debian-archive-jessie-automatic.gpg --keyring /etc/apt/trusted.gpg.d//debian-archive-jessie-security-automatic.gpg --keyring /etc/apt/trusted.gpg.d//debian-archive-jessie-stable.gpg --keyring /etc/apt/trusted.gpg.d//debian-archive-squeeze-automatic.gpg --keyring /etc/apt/trusted.gpg.d//debian-archive-squeeze-stable.gpg --keyring /etc/apt/trusted.gpg.d//debian-archive-wheezy-automatic.gpg --keyring /etc/apt/trusted.gpg.d//debian-archive-wheezy-stable.gpg --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 46925553
gpg: requesting key 46925553 from hkp server keyserver.ubuntu.com
gpg: unnatural exit of external program
gpg: no handler for keyserver scheme `hkp'
gpg: keyserver receive failed: keyserver error
뭐하세요? ! 내 두뇌가 망가졌습니다. 동일한 이미지가 CentOS에서 잘 실행됩니다.
centos$ docker exec -ti b9 /bin/sh
#apt-키 목록
...
-----------------------------------------------------------
pub 4096R/46925553 2012-04-27 [revoked: 2019-07-01]
uid Debian Archive Automatic Signing Key (7.0/wheezy) <[email protected]>
/etc/apt/trusted.gpg.d//debian-archive-wheezy-stable.gpg
--------------------------------------------------------
...
debian$docker --version Docker 버전 23.0.2, 빌드 569dd73
centos$ docker --version Docker 버전 20.10.18, 빌드 b40c2f6
centos에 구축된 이미지는 debian에서 시도되었으며 결과는 CentOS에서 잘 실행되지만 Debian에서는 실패합니다.