Skip to content

Commit a629b94

Browse files
authored
directly support ubuntu based distros in add repository snippets
default to VERSION_CODENAME but use UBUNTU_CODENAME if present and remove comment to do so manually
1 parent 2d87e9b commit a629b94

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

content/manuals/engine/install/ubuntu.md

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -127,16 +127,11 @@ Docker from the repository.
127127
# Add the repository to Apt sources:
128128
echo \
129129
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] {{% param "download-url-base" %}} \
130-
$(. /etc/os-release && echo "$VERSION_CODENAME") stable" | \
130+
$(. /etc/os-release && echo "${UBUNTU_CODENAME:-$VERSION_CODENAME}") stable" | \
131131
sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
132132
sudo apt-get update
133133
```
134134

135-
> [!NOTE]
136-
>
137-
> If you use an Ubuntu derivative distribution, such as Linux Mint,
138-
> you may need to use `UBUNTU_CODENAME` instead of `VERSION_CODENAME`.
139-
140135
2. Install the Docker packages.
141136

142137
{{< tabs >}}

0 commit comments

Comments
 (0)