Dev

Ubuntu 도커 gpg key 에러

고랑E 2024. 3. 28. 20:54
728x90

도커를 설치하는 블로그를 보면서 따라하다가 발견된 오류..

 

apt upgrade 를 해보면 다음과 같은 에러가 나온다.

W: https://download.docker.com/linux/ubuntu/dists/jammy/InRelease: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.

 

서버에 gpg 키가 등록된건지 확인할 수 없을때 나오는거같다.

 

curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /etc/apt/trusted.gpg.d/docker.gpg

 

를 통해 도커 gpg 키를 다운로드 받고 /etc/apt/trusted.gpg.d 폴더에  docker.gpg 로 저장하면 오류가 안뜬다.