Skip to content

Commit e116d8c

Browse files
author
atommaki
authored
ubuntu.md: minor update for apt-key usage
Please use the `--keyring /etc/apt/trusted.gpg.d/docker.gpg` option for apt-key when add a new key. It makes the installation cleaner, instead of modifying system wide binary file it creates a new dedicated one. Easier to clean up as it's enough simple delete the file (apt-key del... works too).
1 parent 0d2091f commit e116d8c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

install/linux/docker-ce/ubuntu.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ from the repository.
112112
3. Add Docker's official GPG key:
113113
114114
```bash
115-
$ curl -fsSL {{ download-url-base }}/gpg | sudo apt-key add -
115+
$ curl -fsSL {{ download-url-base }}/gpg | sudo apt-key --keyring /etc/apt/trusted.gpg.d/docker.gpg add -
116116
```
117117
118118
Verify that you now have the key with the fingerprint

0 commit comments

Comments
 (0)