mirror of https://github.com/docker/docs.git
Merge pull request #21749 from nisrael/patch-1
directly support ubuntu based distros in add repository snippet
This commit is contained in:
parent
313ea775b3
commit
255c59bf55
|
@ -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 >}}
|
||||
|
|
Loading…
Reference in New Issue