Skip to content

Commit 764f213

Browse files
eshattowE Shattow
authored andcommitted
engine/install: debian.md drop shell prompt character from code blocks
Drop shell prompt character dollar-sign in favor of indent for command output
1 parent c84c028 commit 764f213

File tree

1 file changed

+28
-27
lines changed

1 file changed

+28
-27
lines changed

content/manuals/engine/install/debian.md

Lines changed: 28 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ conflicts with the versions bundled with Docker Engine.
7171
Run the following command to uninstall all conflicting packages:
7272

7373
```console
74-
$ sudo apt remove docker.io docker-doc docker-compose podman-docker containerd runc
74+
sudo apt remove docker.io docker-doc docker-compose podman-docker containerd runc
7575
```
7676

7777
`apt` might report that you have none of these packages installed.
@@ -117,9 +117,10 @@ Docker from the repository.
117117

118118
# Add the repository to Apt sources:
119119
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
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+
123124
sudo apt update
124125

125126
```
@@ -145,7 +146,7 @@ Docker from the repository.
145146
To install the latest version, run:
146147
147148
```console
148-
$ sudo apt install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
149+
sudo apt install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
149150
```
150151
151152
{{< /tab >}}
@@ -155,18 +156,18 @@ Docker from the repository.
155156
available versions in the repository:
156157
157158
```console
158-
$ apt list --all-versions docker-ce
159+
apt list --all-versions docker-ce
159160
160-
docker-ce/bookworm 5:{{% param "docker_ce_version" %}}-1~debian.13~bookworm <arch>
161-
docker-ce/bookworm 5:{{% param "docker_ce_version_prev" %}}-1~debian.13~bookworm <arch>
162-
...
161+
docker-ce/bookworm 5:{{% param "docker_ce_version" %}}-1~debian.13~bookworm <arch>
162+
docker-ce/bookworm 5:{{% param "docker_ce_version_prev" %}}-1~debian.13~bookworm <arch>
163+
...
163164
```
164165
165166
Select the desired version and install:
166167
167168
```console
168-
$ VERSION_STRING=5:{{% param "docker_ce_version" %}}-1~debian.12~bookworm
169-
$ sudo apt install docker-ce=$VERSION_STRING docker-ce-cli=$VERSION_STRING containerd.io docker-buildx-plugin docker-compose-plugin
169+
VERSION_STRING=5:{{% param "docker_ce_version" %}}-1~debian.12~bookworm
170+
sudo apt install docker-ce=$VERSION_STRING docker-ce-cli=$VERSION_STRING containerd.io docker-buildx-plugin docker-compose-plugin
170171
```
171172
172173
{{< /tab >}}
@@ -178,19 +179,19 @@ Docker from the repository.
178179
> Docker is running, use:
179180
>
180181
> ```console
181-
> $ sudo systemctl status docker
182+
> sudo systemctl status docker
182183
> ```
183184
>
184185
> Some systems may have this behavior disabled and will require a manual start:
185186
>
186187
> ```console
187-
> $ sudo systemctl start docker
188+
> sudo systemctl start docker
188189
> ```
189190
190191
3. Verify that the installation is successful by running the `hello-world` image:
191192
192193
```console
193-
$ sudo docker run hello-world
194+
sudo docker run hello-world
194195
```
195196
196197
This command downloads a test image and runs it in a container. When the
@@ -233,11 +234,11 @@ download a new file each time you want to upgrade Docker Engine.
233234
where you downloaded the Docker packages.
234235
235236
```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
237+
sudo dpkg -i ./containerd.io_<version>_<arch>.deb \
238+
./docker-ce_<version>_<arch>.deb \
239+
./docker-ce-cli_<version>_<arch>.deb \
240+
./docker-buildx-plugin_<version>_<arch>.deb \
241+
./docker-compose-plugin_<version>_<arch>.deb
241242
```
242243
243244
> [!NOTE]
@@ -246,19 +247,19 @@ download a new file each time you want to upgrade Docker Engine.
246247
> Docker is running, use:
247248
>
248249
> ```console
249-
> $ sudo systemctl status docker
250+
> sudo systemctl status docker
250251
> ```
251252
>
252253
> Some systems may have this behavior disabled and will require a manual start:
253254
>
254255
> ```console
255-
> $ sudo systemctl start docker
256+
> sudo systemctl start docker
256257
> ```
257258
258259
6. Verify that the installation is successful by running the `hello-world` image:
259260
260261
```console
261-
$ sudo docker run hello-world
262+
sudo docker run hello-world
262263
```
263264
264265
This command downloads a test image and runs it in a container. When the
@@ -280,22 +281,22 @@ To upgrade Docker Engine, download the newer package files and repeat the
280281
1. Uninstall the Docker Engine, CLI, containerd, and Docker Compose packages:
281282
282283
```console
283-
$ sudo apt purge docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin docker-ce-rootless-extras
284+
sudo apt purge docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin docker-ce-rootless-extras
284285
```
285286
286287
2. Images, containers, volumes, or custom configuration files on your host
287288
aren't automatically removed. To delete all images, containers, and volumes:
288289

289290
```console
290-
$ sudo rm -rf /var/lib/docker
291-
$ sudo rm -rf /var/lib/containerd
291+
sudo rm -rf /var/lib/docker
292+
sudo rm -rf /var/lib/containerd
292293
```
293294

294295
3. Remove source list and keyrings
295296

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

301302
You have to delete any edited configuration files manually.

0 commit comments

Comments
 (0)