mirror of https://github.com/docker/docs.git
Refactor the command to set up the repository
This commit is contained in:
parent
f1f1247021
commit
38f62aa9b4
|
@ -102,9 +102,10 @@ Docker from the repository.
|
||||||
3. Use the following command to set up the repository:
|
3. Use the following command to set up the repository:
|
||||||
|
|
||||||
```console
|
```console
|
||||||
$ . /etc/os-release && echo \
|
$ echo \
|
||||||
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] {{ download-url-base }} \
|
"deb [arch="$(dpkg --print-architecture)" signed-by=/etc/apt/keyrings/docker.gpg] {{ download-url-base }} \
|
||||||
$VERSION_CODENAME stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
|
"$(. /etc/os-release && echo "$VERSION_CODENAME")" stable" | \
|
||||||
|
sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
|
||||||
```
|
```
|
||||||
|
|
||||||
#### Install Docker Engine
|
#### Install Docker Engine
|
||||||
|
|
|
@ -101,9 +101,10 @@ Docker from the repository.
|
||||||
3. Use the following command to set up the repository:
|
3. Use the following command to set up the repository:
|
||||||
|
|
||||||
```console
|
```console
|
||||||
$ . /etc/os-release && echo \
|
$ echo \
|
||||||
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] {{ download-url-base }} \
|
"deb [arch="$(dpkg --print-architecture)" signed-by=/etc/apt/keyrings/docker.gpg] {{ download-url-base }} \
|
||||||
$VERSION_CODENAME stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
|
"$(. /etc/os-release && echo "$VERSION_CODENAME")" stable" | \
|
||||||
|
sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
|
||||||
```
|
```
|
||||||
|
|
||||||
#### Install Docker Engine
|
#### Install Docker Engine
|
||||||
|
|
Loading…
Reference in New Issue