Skip to content

Commands to add Docker’s official GPG key do not work when copy/pasted. #16418

@zachmorr

Description

@zachmorr

File: engine/install/ubuntu.md

When commands in step 2 of "Install using the repository" are copy/pasted the docker.gpg file isn't downloaded. This causes a GPG error on the next step.

Here is the terminal output:

zach@DESKTOP-B1UUGUV:~/projects/npi$ sudo mkdir -p /etc/apt/keyrings
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpgcurl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpgzach@DESKTOP-B1UUGUV:~/projects/npi$ ll
total 8
drwxr-xr-x 2 zach zach 4096 Jan  2 10:38 ./
drwxr-xr-x 4 zach zach 4096 Jan  2 10:38 ../
zach@DESKTOP-B1UUGUV:~/projects/npi$

Notice the lack of newline after the second command, maybe that's related to whatever is causing the issue?

I am on Windows, using WSL, and this problem occurs in powershell, cmd, and ubuntu.exe but NOT Windows Terminal.

Copy/pasting each of the two commands individually fixed the problem for me.

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