docker-nginx icon indicating copy to clipboard operation
docker-nginx copied to clipboard

Update gpg dir

Open vndroid opened this issue 11 months ago • 2 comments

  • according to Debian UseThirdParty, gpg trust directory changed to /etc/apt/keyrings
  • Debian 11 (bullseye) need to create dir first, This can be removed in subsequent upgrades to the new version.

If future updates to the certificate will be managed by an apt/dpkg package as recommended below, then it SHOULD be downloaded into /usr/share/keyrings using the same filename that will be provided by the package. If it will be managed locally , it SHOULD be downloaded into /etc/apt/keyrings instead.

vndroid avatar Jul 25 '23 02:07 vndroid

Hi @vndroid !

I'm not sure Debian wiki counts as an official documentation, however man 5 sources.list on Debian 12 says:

The recommended locations for keyrings are /usr/share/keyrings for keyrings managed by packages, and /etc/apt/keyrings for keyrings managed by the system operator.

Looking at other official images, it seems to be all over the place at this moment. I don't mind this change, but let's wait until we move stable images to Debian 12 so we can drop the mkdir altogether.

thresheek avatar Aug 02 '23 18:08 thresheek

/usr/share/keyrings for keyrings managed by packages

/usr/share/keyrings for keyrings managed by packages means the Debian official GPG key is stored in it. The others key will be stored in the /etc/ dir.

Example: https://docs.docker.com/engine/install/debian/ Docker has moved into the new directory. But I agree with you.

You can merge it in first, and then wait until a later stage to just remove the create statement and comment information.

vndroid avatar Aug 03 '23 07:08 vndroid

thanks @vndroid !

thresheek avatar Apr 23 '24 21:04 thresheek