@@ -71,10 +71,10 @@ 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+ $ sudo apt remove docker.io docker-doc docker-compose podman-docker containerd runc
7575```
7676
77- ` apt-get ` might report that you have none of these packages installed.
77+ ` apt ` might report that you have none of these packages installed.
7878
7979Images, containers, volumes, and networks stored in ` /var/lib/docker/ ` aren't
8080automatically removed when you uninstall Docker. If you want to start with a
@@ -109,8 +109,8 @@ Docker from the repository.
109109
110110 ``` bash
111111 # Add Docker's official GPG key:
112- sudo apt-get update
113- sudo apt-get install ca-certificates curl
112+ sudo apt update
113+ sudo apt install ca-certificates curl
114114 sudo install -m 0755 -d /etc/apt/keyrings
115115 sudo curl -fsSL {{% param " download-url-base" %}}/gpg -o /etc/apt/keyrings/docker.asc
116116 sudo chmod a+r /etc/apt/keyrings/docker.asc
@@ -120,7 +120,8 @@ Docker from the repository.
120120 " deb [arch=$( dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] {{% param " download-url-base" %}} \
121121 $( . /etc/os-release && echo " $VERSION_CODENAME " ) stable" | \
122122 sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
123- sudo apt-get update
123+ sudo apt update
124+
124125 ```
125126
126127 > [! NOTE]
@@ -144,7 +145,7 @@ Docker from the repository.
144145 To install the latest version, run:
145146
146147 ```console
147- $ sudo apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
148+ $ sudo apt install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
148149 ```
149150
150151 {{< /tab >}}
@@ -154,19 +155,18 @@ Docker from the repository.
154155 available versions in the repository:
155156
156157 ```console
157- # List the available versions:
158- $ apt-cache madison docker-ce | awk ' { print $3 }'
158+ $ apt list --all-versions docker-ce
159159
160- 5:{{% param "docker_ce_version" %}}-1~debian.12~bookworm
161- 5:{{% param "docker_ce_version_prev" %}}-1~debian.12~bookworm
160+ docker-ce/bookworm 5:{{% param "docker_ce_version" %}}-1~debian.12~bookworm <arch>
161+ docker-ce/bookworm 5:{{% param "docker_ce_version_prev" %}}-1~debian.12~bookworm <arch>
162162 ...
163163 ```
164164
165165 Select the desired version and install:
166166
167167 ```console
168168 $ 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
169+ $ sudo apt install docker-ce=$VERSION_STRING docker-ce-cli=$VERSION_STRING containerd.io docker-buildx-plugin docker-compose-plugin
170170 ```
171171
172172 {{< /tab >}}
@@ -280,7 +280,7 @@ To upgrade Docker Engine, download the newer package files and repeat the
2802801. Uninstall the Docker Engine, CLI, containerd, and Docker Compose packages:
281281
282282 ```console
283- $ sudo apt-get purge docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin docker-ce-rootless-extras
283+ $ sudo apt purge docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin docker-ce-rootless-extras
284284 ```
285285
2862862. Images, containers, volumes, or custom configuration files on your host
0 commit comments