Merge pull request #21749 from nisrael/patch-1

directly support ubuntu based distros in add repository snippet
This commit is contained in:
Nils Israel 2025-01-31 12:51:15 +01:00 committed by GitHub
parent 313ea775b3
commit 255c59bf55
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 6 additions and 6 deletions

View File

@ -58,6 +58,11 @@ versions:
Docker Engine for Ubuntu is compatible with x86_64 (or amd64), armhf, arm64,
s390x, and ppc64le (ppc64el) architectures.
> [!NOTE]
>
> Installation on Ubuntu derivative distributions, such as Linux Mint, is not officially
> supported (though it may work).
### Uninstall old versions
Before you can install Docker Engine, you need to uninstall any conflicting packages.
@ -127,16 +132,11 @@ Docker from the repository.
# Add the repository to Apt sources:
echo \
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] {{% param "download-url-base" %}} \
$(. /etc/os-release && echo "$VERSION_CODENAME") stable" | \
$(. /etc/os-release && echo "${UBUNTU_CODENAME:-$VERSION_CODENAME}") stable" | \
sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
sudo apt-get update
```
> [!NOTE]
>
> If you use an Ubuntu derivative distribution, such as Linux Mint,
> you may need to use `UBUNTU_CODENAME` instead of `VERSION_CODENAME`.
2. Install the Docker packages.
{{< tabs >}}