Skip to content

Commit feec852

Browse files
LLdanieldvdksn
andauthored
Add deb822 apt sources to install section in Debian manual (#23249)
New apt sources format [RFC822](https://manpages.debian.org/trixie/apt/sources.list.5.en.html) $ cat /etc/apt/sources.list.d/docker.sources Types: deb URIs: https://download.docker.com/linux/debian/ Suites: trixie Components: stable Signed-By: /etc/apt/keyrings/docker.gpg --------- Co-authored-by: David Karlsson <[email protected]>
1 parent 1996739 commit feec852

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

content/manuals/engine/install/debian.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -116,10 +116,14 @@ Docker from the repository.
116116
sudo chmod a+r /etc/apt/keyrings/docker.asc
117117

118118
# Add the repository to Apt sources:
119-
echo \
120-
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] {{% param "download-url-base" %}} \
121-
$(. /etc/os-release && echo "$VERSION_CODENAME") stable" | \
122-
sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
119+
sudo tee /etc/apt/sources.list.d/docker.sources <<EOF
120+
Types: deb
121+
URIs: {{% param "download-url-base" %}}
122+
Suites: $(. /etc/os-release && echo "$VERSION_CODENAME")
123+
Components: stable
124+
Signed-By: /etc/apt/keyrings/docker.asc
125+
EOF
126+
123127
sudo apt-get update
124128
```
125129

0 commit comments

Comments
 (0)