Skip to content

Change path for Ubuntu docker GPG key #17471

@dogsbody

Description

@dogsbody

Is this a docs issue?

  • My issue is about the documentation content or website

Type of issue

Information is incorrect

Description

I suggest changing instances of /etc/apt/keyrings/docker.gpg to /usr/share/keyrings/docker.gpg

The reasons:

  1. The instructions were asking us to create /etc/apt/keyrings while /usr/share/keyrings already exists for exactly this use.
  2. The old path is very close to /etc/apt/trusted.gpg.d/ which should never be used. Any gpg keys placed in /etc/apt/trusted.gpg.d will be trusted blindly by all repositories on the system.

In short, in the last few years, /usr/share/keyrings has now been defined as the place to put these new repository specific gpg keys 👍

Location

https://docs.docker.com/engine/install/ubuntu/

Suggestion

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions