Skip to content

Commit fc95132

Browse files
eshattowE Shattow
authored andcommitted
engine/install: debian.md use consistent block indent
Use four spaces consistently with ordered list and code example indent instead of a mix of two, three, and four.
1 parent 75fcd57 commit fc95132

File tree

1 file changed

+113
-113
lines changed

1 file changed

+113
-113
lines changed

content/manuals/engine/install/debian.md

Lines changed: 113 additions & 113 deletions
Original file line numberDiff line numberDiff line change
@@ -105,72 +105,72 @@ Before you install Docker Engine for the first time on a new host machine, you
105105
need to set up the Docker `apt` repository. Afterward, you can install and update
106106
Docker from the repository.
107107

108-
1. Set up Docker's `apt` repository.
109-
110-
```bash
111-
# Add Docker's official GPG key:
112-
sudo apt-get update
113-
sudo apt-get install ca-certificates curl
114-
sudo install -m 0755 -d /etc/apt/keyrings
115-
sudo curl -fsSL {{% param "download-url-base" %}}/gpg -o /etc/apt/keyrings/docker.asc
116-
sudo chmod a+r /etc/apt/keyrings/docker.asc
117-
118-
# Add the repository to Apt sources:
119-
echo \
120-
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] {{% param "download-url-base" %}} \
121-
$(. /etc/os-release && echo "$VERSION_CODENAME") stable" | \
122-
sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
123-
sudo apt-get update
124-
```
125-
126-
> [!NOTE]
127-
>
128-
> If you use a derivative distribution, such as Kali Linux,
129-
> you may need to substitute the part of this command that's expected to
130-
> print the version codename:
131-
>
132-
> ```console
133-
> $(. /etc/os-release && echo "$VERSION_CODENAME")
134-
> ```
135-
>
136-
> Replace this part with the codename of the corresponding Debian release,
137-
> such as `bookworm`.
138-
139-
2. Install the Docker packages.
140-
141-
{{< tabs >}}
142-
{{< tab name="Latest" >}}
143-
144-
To install the latest version, run:
145-
146-
```console
147-
$ sudo apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
148-
```
149-
150-
{{< /tab >}}
151-
{{< tab name="Specific version" >}}
152-
153-
To install a specific version of Docker Engine, start by listing the
154-
available versions in the repository:
155-
156-
```console
157-
# List the available versions:
158-
$ apt-cache madison docker-ce | awk '{ print $3 }'
159-
160-
5:{{% param "docker_ce_version" %}}-1~debian.12~bookworm
161-
5:{{% param "docker_ce_version_prev" %}}-1~debian.12~bookworm
162-
...
163-
```
164-
165-
Select the desired version and install:
166-
167-
```console
168-
$ VERSION_STRING=5:{{% param "docker_ce_version" %}}-1~debian.12~bookworm
169-
$ sudo apt-get install docker-ce=$VERSION_STRING docker-ce-cli=$VERSION_STRING containerd.io docker-buildx-plugin docker-compose-plugin
170-
```
171-
172-
{{< /tab >}}
173-
{{< /tabs >}}
108+
1. Set up Docker's `apt` repository.
109+
110+
```bash
111+
# Add Docker's official GPG key:
112+
sudo apt-get update
113+
sudo apt-get install ca-certificates curl
114+
sudo install -m 0755 -d /etc/apt/keyrings
115+
sudo curl -fsSL {{% param "download-url-base" %}}/gpg -o /etc/apt/keyrings/docker.asc
116+
sudo chmod a+r /etc/apt/keyrings/docker.asc
117+
118+
# Add the repository to Apt sources:
119+
echo \
120+
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] {{% param "download-url-base" %}} \
121+
$(. /etc/os-release && echo "$VERSION_CODENAME") stable" | \
122+
sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
123+
sudo apt-get update
124+
```
125+
126+
> [!NOTE]
127+
>
128+
> If you use a derivative distribution, such as Kali Linux,
129+
> you may need to substitute the part of this command that's expected to
130+
> print the version codename:
131+
>
132+
> ```console
133+
> $(. /etc/os-release && echo "$VERSION_CODENAME")
134+
> ```
135+
>
136+
> Replace this part with the codename of the corresponding Debian release,
137+
> such as `bookworm`.
138+
139+
2. Install the Docker packages.
140+
141+
{{< tabs >}}
142+
{{< tab name="Latest" >}}
143+
144+
To install the latest version, run:
145+
146+
```console
147+
$ sudo apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
148+
```
149+
150+
{{< /tab >}}
151+
{{< tab name="Specific version" >}}
152+
153+
To install a specific version of Docker Engine, start by listing the
154+
available versions in the repository:
155+
156+
```console
157+
# List the available versions:
158+
$ apt-cache madison docker-ce | awk '{ print $3 }'
159+
160+
5:{{% param "docker_ce_version" %}}-1~debian.12~bookworm
161+
5:{{% param "docker_ce_version_prev" %}}-1~debian.12~bookworm
162+
...
163+
```
164+
165+
Select the desired version and install:
166+
167+
```console
168+
$ VERSION_STRING=5:{{% param "docker_ce_version" %}}-1~debian.12~bookworm
169+
$ sudo apt-get install docker-ce=$VERSION_STRING docker-ce-cli=$VERSION_STRING containerd.io docker-buildx-plugin docker-compose-plugin
170+
```
171+
172+
{{< /tab >}}
173+
{{< /tabs >}}
174174
175175
> [!NOTE]
176176
>
@@ -187,14 +187,14 @@ Docker from the repository.
187187
> $ sudo systemctl start docker
188188
> ```
189189
190-
3. Verify that the installation is successful by running the `hello-world` image:
190+
3. Verify that the installation is successful by running the `hello-world` image:
191191
192-
```console
193-
$ sudo docker run hello-world
194-
```
192+
```console
193+
$ sudo docker run hello-world
194+
```
195195
196-
This command downloads a test image and runs it in a container. When the
197-
container runs, it prints a confirmation message and exits.
196+
This command downloads a test image and runs it in a container. When the
197+
container runs, it prints a confirmation message and exits.
198198
199199
You have now successfully installed and started Docker Engine.
200200
@@ -213,32 +213,32 @@ download the `deb` file for your release and install it manually. You need to
213213
download a new file each time you want to upgrade Docker Engine.
214214
215215
<!-- markdownlint-disable-next-line -->
216-
1. Go to [`{{% param "download-url-base" %}}/dists/`]({{% param "download-url-base" %}}/dists/).
216+
1. Go to [`{{% param "download-url-base" %}}/dists/`]({{% param "download-url-base" %}}/dists/).
217217
218-
2. Select your Debian version in the list.
218+
2. Select your Debian version in the list.
219219
220-
3. Go to `pool/stable/` and select the applicable architecture (`amd64`,
221-
`armhf`, `arm64`, or `s390x`).
220+
3. Go to `pool/stable/` and select the applicable architecture (`amd64`,
221+
`armhf`, `arm64`, or `s390x`).
222222
223-
4. Download the following `deb` files for the Docker Engine, CLI, containerd,
224-
and Docker Compose packages:
223+
4. Download the following `deb` files for the Docker Engine, CLI, containerd,
224+
and Docker Compose packages:
225225
226-
- `containerd.io_<version>_<arch>.deb`
227-
- `docker-ce_<version>_<arch>.deb`
228-
- `docker-ce-cli_<version>_<arch>.deb`
229-
- `docker-buildx-plugin_<version>_<arch>.deb`
230-
- `docker-compose-plugin_<version>_<arch>.deb`
226+
- `containerd.io_<version>_<arch>.deb`
227+
- `docker-ce_<version>_<arch>.deb`
228+
- `docker-ce-cli_<version>_<arch>.deb`
229+
- `docker-buildx-plugin_<version>_<arch>.deb`
230+
- `docker-compose-plugin_<version>_<arch>.deb`
231231
232-
5. Install the `.deb` packages. Update the paths in the following example to
233-
where you downloaded the Docker packages.
232+
5. Install the `.deb` packages. Update the paths in the following example to
233+
where you downloaded the Docker packages.
234234
235-
```console
236-
$ sudo dpkg -i ./containerd.io_<version>_<arch>.deb \
237-
./docker-ce_<version>_<arch>.deb \
238-
./docker-ce-cli_<version>_<arch>.deb \
239-
./docker-buildx-plugin_<version>_<arch>.deb \
240-
./docker-compose-plugin_<version>_<arch>.deb
241-
```
235+
```console
236+
$ sudo dpkg -i ./containerd.io_<version>_<arch>.deb \
237+
./docker-ce_<version>_<arch>.deb \
238+
./docker-ce-cli_<version>_<arch>.deb \
239+
./docker-buildx-plugin_<version>_<arch>.deb \
240+
./docker-compose-plugin_<version>_<arch>.deb
241+
```
242242
243243
> [!NOTE]
244244
>
@@ -255,14 +255,14 @@ download a new file each time you want to upgrade Docker Engine.
255255
> $ sudo systemctl start docker
256256
> ```
257257
258-
6. Verify that the installation is successful by running the `hello-world` image:
258+
6. Verify that the installation is successful by running the `hello-world` image:
259259
260-
```console
261-
$ sudo docker run hello-world
262-
```
260+
```console
261+
$ sudo docker run hello-world
262+
```
263263
264-
This command downloads a test image and runs it in a container. When the
265-
container runs, it prints a confirmation message and exits.
264+
This command downloads a test image and runs it in a container. When the
265+
container runs, it prints a confirmation message and exits.
266266
267267
You have now successfully installed and started Docker Engine.
268268
@@ -277,26 +277,26 @@ To upgrade Docker Engine, download the newer package files and repeat the
277277
278278
## Uninstall Docker Engine
279279
280-
1. Uninstall the Docker Engine, CLI, containerd, and Docker Compose packages:
280+
1. Uninstall the Docker Engine, CLI, containerd, and Docker Compose packages:
281281
282-
```console
283-
$ sudo apt-get purge docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin docker-ce-rootless-extras
284-
```
282+
```console
283+
$ sudo apt-get purge docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin docker-ce-rootless-extras
284+
```
285285
286-
2. Images, containers, volumes, or custom configuration files on your host
287-
aren't automatically removed. To delete all images, containers, and volumes:
286+
2. Images, containers, volumes, or custom configuration files on your host
287+
aren't automatically removed. To delete all images, containers, and volumes:
288288

289-
```console
290-
$ sudo rm -rf /var/lib/docker
291-
$ sudo rm -rf /var/lib/containerd
292-
```
289+
```console
290+
$ sudo rm -rf /var/lib/docker
291+
$ sudo rm -rf /var/lib/containerd
292+
```
293293

294-
3. Remove source list and keyrings
294+
3. Remove source list and keyrings
295295

296-
```console
297-
$ sudo rm /etc/apt/sources.list.d/docker.list
298-
$ sudo rm /etc/apt/keyrings/docker.asc
299-
```
296+
```console
297+
$ sudo rm /etc/apt/sources.list.d/docker.list
298+
$ sudo rm /etc/apt/keyrings/docker.asc
299+
```
300300

301301
You have to delete any edited configuration files manually.
302302

0 commit comments

Comments
 (0)