Skip to content

Commit 8ceeb47

Browse files
eshattowE Shattow
authored andcommitted
engine/install: debian.md use apt
Update user-facing descriptions to use apt tool instead of apt-get and apt-cache
1 parent ffeb187 commit 8ceeb47

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

content/manuals/engine/install/debian.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -72,11 +72,11 @@ Run the following command to uninstall all conflicting packages:
7272

7373
```console
7474
$ for pkg in docker.io docker-doc docker-compose podman-docker containerd runc
75-
do sudo apt-get remove $pkg
75+
do sudo apt remove $pkg
7676
done
7777
```
7878

79-
`apt-get` might report that you have none of these packages installed.
79+
`apt` might report that you have none of these packages installed.
8080

8181
Images, containers, volumes, and networks stored in `/var/lib/docker/` aren't
8282
automatically removed when you uninstall Docker. If you want to start with a
@@ -111,8 +111,8 @@ Docker from the repository.
111111

112112
```console
113113
# Add Docker's official GPG key:
114-
$ sudo apt-get update
115-
$ sudo apt-get install ca-certificates curl
114+
$ sudo apt update
115+
$ sudo apt install ca-certificates curl
116116
$ sudo install -m 0755 -d /etc/apt/keyrings
117117
$ sudo curl -fsSL {{% param "download-url-base" %}}/gpg -o /etc/apt/keyrings/docker.asc
118118
$ sudo chmod a+r /etc/apt/keyrings/docker.asc
@@ -123,7 +123,7 @@ Docker from the repository.
123123
$(. /etc/os-release && echo "$VERSION_CODENAME") stable" | \
124124
sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
125125

126-
$ sudo apt-get update
126+
$ sudo apt update
127127
```
128128

129129
> [!NOTE]
@@ -147,7 +147,7 @@ Docker from the repository.
147147
To install the latest version, run:
148148
149149
```console
150-
$ sudo apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
150+
$ sudo apt install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
151151
```
152152
153153
{{< /tab >}}
@@ -157,18 +157,18 @@ Docker from the repository.
157157
available versions in the repository:
158158

159159
```console
160-
# List the available versions:
161-
$ apt-cache madison docker-ce | awk '{ print $3 }'
162-
5:{{% param "docker_ce_version" %}}-1~debian.12~bookworm
163-
5:{{% param "docker_ce_version_prev" %}}-1~debian.12~bookworm
164-
...
160+
$ apt list --all-versions docker-ce
161+
162+
docker-ce/bookworm 5:{{% param "docker_ce_version" %}}-1~debian.12~bookworm <arch>
163+
docker-ce/bookworm 5:{{% param "docker_ce_version_prev" %}}-1~debian.12~bookworm <arch>
164+
...
165165
```
166166

167167
Select the desired version and install:
168168

169169
```console
170170
$ VERSION_STRING=5:{{% param "docker_ce_version" %}}-1~debian.12~bookworm
171-
$ sudo apt-get install docker-ce=$VERSION_STRING docker-ce-cli=$VERSION_STRING containerd.io docker-buildx-plugin docker-compose-plugin
171+
$ sudo apt install docker-ce=$VERSION_STRING docker-ce-cli=$VERSION_STRING containerd.io docker-buildx-plugin docker-compose-plugin
172172
```
173173

174174
{{< /tab >}}
@@ -282,7 +282,7 @@ To upgrade Docker Engine, download the newer package files and repeat the
282282
1. Uninstall the Docker Engine, CLI, containerd, and Docker Compose packages:
283283

284284
```console
285-
$ sudo apt-get purge docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin docker-ce-rootless-extras
285+
$ sudo apt purge docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin docker-ce-rootless-extras
286286
```
287287

288288
2. Images, containers, volumes, or custom configuration files on your host

0 commit comments

Comments
 (0)