반응형
▪ Synopsis
ENV DEBIAN_FRONTEND=noninteractive
유분투(Ubuntu)를 포함한 데비안(Debian)계열에서 docker build 할 때 패키지 매니저와 noninteratice하게 제어하기 위해 사용한다.
yum의 경우에는 interative 입력을 받지 않도록 -y option을 사용한다.
해당 구문이 docker file 안에 있었는데 아래와 같은 오류가 발생했다.
Get:1 http://security.debian.org/debian-security buster/updates InRelease [34.8 kB]
Get:2 http://deb.debian.org/debian buster InRelease [122 kB]
Err:1 http://security.debian.org/debian-security buster/updates InRelease
At least one invalid signature was encountered.
Err:2 http://deb.debian.org/debian buster InRelease
At least one invalid signature was encountered.
Get:3 http://deb.debian.org/debian buster-updates InRelease [56.6 kB]
Err:3 http://deb.debian.org/debian buster-updates InRelease
At least one invalid signature was encountered.
Reading package lists...
W: GPG error: http://security.debian.org/debian-security buster/updates InRelease: At least one invalid signature was encountered.
E: The repository 'http://security.debian.org/debian-security buster/updates InRelease' is not signed.
W: GPG error: http://deb.debian.org/debian buster InRelease: At least one invalid signature was encountered.
E: The repository 'http://deb.debian.org/debian buster InRelease' is not signed.
W: GPG error: http://deb.debian.org/debian buster-updates InRelease: At least one invalid signature was encountered.
E: The repository 'http://deb.debian.org/debian buster-updates InRelease' is not signed.
계속 build 진행에 문제가 없었는데 최근 image name과 tag가 변경되고 문제가 발생한 것을 의심해보았다.
확인해보니 the previous responses saying to prune images or containers worked. 원인이었고 해당 명령어로 builder cache 지워주니 정상 build 완료 !
The above command will clear the whole Docker system. If you want to clear only the build cache, you can do it with the below command.
$ docker builder prune
참고 :
https://stackoverflow.com/questions/62473932/atleast-one-invalid-signature-was-encountered
반응형
'Docker' 카테고리의 다른 글
[Docker] Docker Environment 정리 (0) | 2023.03.05 |
---|