File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed
content/manuals/engine/install Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -116,13 +116,29 @@ Docker from the repository.
116116 sudo chmod a+r /etc/apt/keyrings/docker.asc
117117
118118 # Add the repository to Apt sources:
119+ # Debian 12 and newer
120+ cat << EOF | sudo tee -a /etc/apt/sources.list.d/docker.sources
121+ Types: deb
122+ URIs: https://download.docker.com/linux/debian
123+ Suites: $( . /etc/os-release && echo " $VERSION_CODENAME " )
124+ Components: stable
125+ Architectures: $( dpkg --print-architecture)
126+ Signed-By: /etc/apt/keyrings/docker.asc
127+ EOF
128+
129+ # Older versions of Debian
119130 echo \
120131 "deb [arch=$( dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] {{% param "download-url-base" %}} \
121132 $( . /etc/os-release && echo " $VERSION_CODENAME " ) stable" | \
122133 sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
123134 sudo apt-get update
124135 ` ` `
125136
137+ > [! NOTE]
138+ > Debain 12 and new supports APT sources files in the ` /etc/apt/sources.list.d/` directory.
139+ > This is preferred over adding entries to the main ` /etc/apt/sources.list` file.
140+ > [Debian Documentation](APT sources files)
141+
126142 > [! NOTE]
127143 >
128144 > If you use a derivative distribution, such as Kali Linux,
You can’t perform that action at this time.
0 commit comments