Skip to content

Commit 255c59b

Browse files
authored
Merge pull request #21749 from nisrael/patch-1
directly support ubuntu based distros in add repository snippet
1 parent 313ea77 commit 255c59b

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

content/manuals/engine/install/ubuntu.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,11 @@ versions:
5858
Docker Engine for Ubuntu is compatible with x86_64 (or amd64), armhf, arm64,
5959
s390x, and ppc64le (ppc64el) architectures.
6060

61+
> [!NOTE]
62+
>
63+
> Installation on Ubuntu derivative distributions, such as Linux Mint, is not officially
64+
> supported (though it may work).
65+
6166
### Uninstall old versions
6267

6368
Before you can install Docker Engine, you need to uninstall any conflicting packages.
@@ -127,16 +132,11 @@ Docker from the repository.
127132
# Add the repository to Apt sources:
128133
echo \
129134
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] {{% param "download-url-base" %}} \
130-
$(. /etc/os-release && echo "$VERSION_CODENAME") stable" | \
135+
$(. /etc/os-release && echo "${UBUNTU_CODENAME:-$VERSION_CODENAME}") stable" | \
131136
sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
132137
sudo apt-get update
133138
```
134139

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-
140140
2. Install the Docker packages.
141141

142142
{{< tabs >}}

0 commit comments

Comments
 (0)