Skip to content

Commit 7ecb568

Browse files
committed
add deb822 apt sources to install section in Debian
1 parent 5e8b1da commit 7ecb568

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

content/manuals/engine/install/debian.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,11 +114,21 @@ Docker from the repository.
114114
sudo curl -fsSL {{% param "download-url-base" %}}/gpg -o /etc/apt/keyrings/docker.asc
115115
sudo chmod a+r /etc/apt/keyrings/docker.asc
116116

117-
# Add the repository to Apt sources:
117+
# Add the repository to Apt sources (legacy format):
118118
echo \
119119
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] {{% param "download-url-base" %}} \
120120
$(. /etc/os-release && echo "$VERSION_CODENAME") stable" | \
121121
sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
122+
123+
# Add the repository to Apt sources (new deb822 format, introduced with Trixie):
124+
echo -e \
125+
"Types: deb\n \
126+
URIs: https://download.docker.com/linux/debian/\n \
127+
Suites: $(. /etc/os-release && echo "$VERSION_CODENAME")\n \
128+
Components: stable\n \
129+
Signed-By: /etc/apt/keyrings/docker.gpg" | \
130+
sudo tee /etc/apt/sources.list.d/docker.sources > /dev/null
131+
122132
sudo apt-get update
123133
```
124134

0 commit comments

Comments
 (0)