@@ -71,7 +71,9 @@ conflicts with the versions bundled with Docker Engine.
7171Run the following command to uninstall all conflicting packages:
7272
7373``` console
74- $ for pkg in docker.io docker-doc docker-compose podman-docker containerd runc; do sudo apt-get remove $pkg ; done
74+ $ for pkg in docker.io docker-doc docker-compose podman-docker containerd runc
75+ do sudo apt-get remove $pkg
76+ done
7577```
7678
7779` apt-get ` might report that you have none of these packages installed.
@@ -107,20 +109,21 @@ Docker from the repository.
107109
1081101 . Set up Docker's ` apt ` repository.
109111
110- ``` bash
112+ ``` console
111113 # 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
114+ $ sudo apt-get update
115+ $ sudo apt-get install ca-certificates curl
116+ $ sudo install -m 0755 -d /etc/apt/keyrings
117+ $ sudo curl -fsSL {{% param "download-url-base" %}}/gpg -o /etc/apt/keyrings/docker.asc
118+ $ sudo chmod a+r /etc/apt/keyrings/docker.asc
117119
118120 # 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
121+ $ echo \
122+ "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] {{% param "download-url-base" %}} \
123+ $(. /etc/os-release && echo "$VERSION_CODENAME") stable" | \
124+ sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
125+
126+ $ sudo apt-get update
124127 ```
125128
126129 > [ !NOTE]
@@ -156,9 +159,8 @@ Docker from the repository.
156159 ``` console
157160 # List the available versions:
158161 $ 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+ 5:{{% param "docker_ce_version" %}}-1~debian.12~bookworm
163+ 5:{{% param "docker_ce_version_prev" %}}-1~debian.12~bookworm
162164 ...
163165 ```
164166
@@ -172,20 +174,20 @@ Docker from the repository.
172174 {{< /tab >}}
173175 {{< /tabs >}}
174176
175- > [ !NOTE]
176- >
177- > The Docker service starts automatically after installation. To verify that
178- > Docker is running, use:
179- >
180- > ``` console
181- > $ sudo systemctl status docker
182- > ```
183- >
184- > Some systems may have this behavior disabled and will require a manual start:
185- >
186- > ```console
187- > $ sudo systemctl start docker
188- > ```
177+ > [ !NOTE]
178+ >
179+ > The Docker service starts automatically after installation. To verify that
180+ > Docker is running, use:
181+ >
182+ > ``` console
183+ > $ sudo systemctl status docker
184+ > ```
185+ >
186+ > Some systems may have this behavior disabled and will require a manual start:
187+ >
188+ > ```console
189+ > $ sudo systemctl start docker
190+ > ```
189191
1901923. Verify that the installation is successful by running the `hello-world` image:
191193
@@ -234,26 +236,26 @@ download a new file each time you want to upgrade Docker Engine.
234236
235237 ``` console
236238 $ 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
239+ ./docker-ce_<version>_<arch>.deb \
240+ ./docker-ce-cli_<version>_<arch>.deb \
241+ ./docker-buildx-plugin_<version>_<arch>.deb \
242+ ./docker-compose-plugin_<version>_<arch>.deb
241243 ```
242244
243- > [ !NOTE]
244- >
245- > The Docker service starts automatically after installation. To verify that
246- > Docker is running, use:
247- >
248- > ``` console
249- > $ sudo systemctl status docker
250- > ```
251- >
252- > Some systems may have this behavior disabled and will require a manual start:
253- >
254- > ```console
255- > $ sudo systemctl start docker
256- > ```
245+ > [ !NOTE]
246+ >
247+ > The Docker service starts automatically after installation. To verify that
248+ > Docker is running, use:
249+ >
250+ > ``` console
251+ > $ sudo systemctl status docker
252+ > ```
253+ >
254+ > Some systems may have this behavior disabled and will require a manual start:
255+ >
256+ > ```console
257+ > $ sudo systemctl start docker
258+ > ```
257259
2582606. Verify that the installation is successful by running the `hello-world` image:
259261
0 commit comments