@@ -22,25 +22,16 @@ To get started with Docker Engine on Debian, make sure you
22
22
23
23
### Firewall limitations
24
24
25
- > [ !WARNING]
26
- >
27
- > Before you install Docker, make sure you consider the following
28
- > security implications and firewall incompatibilities.
29
-
30
- - If you use ufw or firewalld to manage firewall settings, be aware that
31
- when you expose container ports using Docker, these ports bypass your
32
- firewall rules. For more information, refer to
33
- [ Docker and ufw] ( /manuals/engine/network/packet-filtering-firewalls.md#docker-and-ufw ) .
34
- - Docker is only compatible with ` iptables-nft ` and ` iptables-legacy ` .
35
- Firewall rules created with ` nft ` are not supported on a system with Docker installed.
36
- Make sure that any firewall rulesets you use are created with ` iptables ` or ` ip6tables ` ,
37
- and that you add them to the ` DOCKER-USER ` chain,
38
- see [ Packet filtering and firewalls] ( /manuals/engine/network/packet-filtering-firewalls.md ) .
25
+ When exposing container ports with Docker, these ports bypass ` ufw ` or ` firewalld ` rules.
26
+ See [ Docker and ufw] ( /manuals/engine/network/packet-filtering-firewalls.md#docker-and-ufw ) for details.
27
+ Docker supports only ` iptables-nft ` and ` iptables-legacy ` .
28
+ Rules created with ` nft ` are not supported on a system with Docker installed.
29
+ Use ` iptables ` or ` ip6tables ` and add rules to the ` DOCKER-USER ` chain.
30
+ See [ Packet filtering and firewalls] ( /manuals/engine/network/packet-filtering-firewalls.md ) .
39
31
40
32
### OS requirements
41
33
42
- To install Docker Engine, you need the 64-bit version of one of these Debian
43
- versions:
34
+ Docker Engine requires a 64-bit version of one of these Debian releases:
44
35
45
36
- Debian Trixie 13 (testing)
46
37
- Debian Bookworm 12 (stable)
@@ -51,13 +42,8 @@ and ppc64le (ppc64el) architectures.
51
42
52
43
### Uninstall old versions
53
44
54
- Before you can install Docker Engine, you need to uninstall any conflicting packages.
55
-
56
- Your Linux distribution may provide unofficial Docker packages, which may conflict
57
- with the official packages provided by Docker. You must uninstall these packages
58
- before you install the official version of Docker Engine.
59
-
60
- The unofficial packages to uninstall are:
45
+ Uninstall unofficial or conflicting Docker packages before installing Docker Engine.
46
+ Remove the following packages if present:
61
47
62
48
- ` docker.io `
63
49
- ` docker-compose `
@@ -75,12 +61,11 @@ Run the following command to uninstall all conflicting packages:
75
61
$ for pkg in docker.io docker-doc docker-compose podman-docker containerd runc; do sudo apt-get remove $pkg ; done
76
62
```
77
63
78
- ` apt-get ` might report that you have none of these packages installed.
64
+ > [ !NOTE]
65
+ > ` apt-get ` might report that you have none of these packages installed.
66
+ > Images, containers, volumes, and networks in ` /var/lib/docker/ ` are not removed automatically.
79
67
80
- Images, containers, volumes, and networks stored in ` /var/lib/docker/ ` aren't
81
- automatically removed when you uninstall Docker. If you want to start with a
82
- clean installation, and prefer to clean up any existing data, read the
83
- [ uninstall Docker Engine] ( #uninstall-docker-engine ) section.
68
+ For a clean install, see [ uninstall Docker Engine] ( #uninstall-docker-engine ) .
84
69
85
70
## Installation methods
86
71
@@ -135,7 +120,7 @@ Docker from the repository.
135
120
> Replace this part with the codename of the corresponding Debian release,
136
121
> such as `bookworm`.
137
122
138
- 2 . Install the Docker packages.
123
+ 1 . Install the Docker packages.
139
124
140
125
{{< tabs >}}
141
126
{{< tab name="Latest" >}}
@@ -171,7 +156,7 @@ Docker from the repository.
171
156
{{< /tab >}}
172
157
{{< /tabs >}}
173
158
174
- 3 . Verify that the installation is successful by running the ` hello-world ` image:
159
+ 1 . Verify that the installation is successful by running the ` hello-world ` image:
175
160
176
161
``` console
177
162
$ sudo docker run hello-world
@@ -192,19 +177,17 @@ choosing the new version you want to install.
192
177
193
178
### Install from a package
194
179
195
- If you can't use Docker's ` apt ` repository to install Docker Engine, you can
196
- download the ` deb ` file for your release and install it manually. You need to
197
- download a new file each time you want to upgrade Docker Engine.
180
+ If you can't use the ` apt ` repository, download and install ` .deb ` files manually:
198
181
199
182
<!-- markdownlint-disable-next-line -->
200
183
1 . Go to [ ` {{% param "download-url-base" %}}/dists/ ` ] ({{% param "download-url-base" %}}/dists/).
201
184
202
- 2 . Select your Debian version in the list.
185
+ 1 . Select your Debian version in the list.
203
186
204
- 3 . Go to ` pool/stable/ ` and select the applicable architecture (` amd64 ` ,
187
+ 1 . Go to ` pool/stable/ ` and select the applicable architecture (` amd64 ` ,
205
188
` armhf ` , ` arm64 ` , or ` s390x ` ).
206
189
207
- 4 . Download the following ` deb ` files for the Docker Engine, CLI, containerd,
190
+ 1 . Download the following ` deb ` files for the Docker Engine, CLI, containerd,
208
191
and Docker Compose packages:
209
192
210
193
- ` containerd.io_<version>_<arch>.deb `
@@ -213,7 +196,7 @@ download a new file each time you want to upgrade Docker Engine.
213
196
- ` docker-buildx-plugin_<version>_<arch>.deb `
214
197
- ` docker-compose-plugin_<version>_<arch>.deb `
215
198
216
- 5 . Install the ` .deb ` packages. Update the paths in the following example to
199
+ 1 . Install the ` .deb ` packages. Update the paths in the following example to
217
200
where you downloaded the Docker packages.
218
201
219
202
``` console
@@ -226,7 +209,7 @@ download a new file each time you want to upgrade Docker Engine.
226
209
227
210
The Docker daemon starts automatically.
228
211
229
- 6 . Verify that the installation is successful by running the ` hello-world ` image:
212
+ 1 . Verify that the installation is successful by running the ` hello-world ` image:
230
213
231
214
``` console
232
215
$ sudo service docker start
@@ -255,15 +238,15 @@ To upgrade Docker Engine, download the newer package files and repeat the
255
238
$ sudo apt-get purge docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin docker-ce-rootless-extras
256
239
```
257
240
258
- 2 . Images, containers, volumes, or custom configuration files on your host
241
+ 1 . Images, containers, volumes, or custom configuration files on your host
259
242
aren't automatically removed. To delete all images, containers, and volumes:
260
243
261
244
``` console
262
245
$ sudo rm -rf /var/lib/docker
263
246
$ sudo rm -rf /var/lib/containerd
264
247
```
265
248
266
- 3 . Remove source list and keyrings
249
+ 1 . Remove source list and keyrings
267
250
268
251
``` console
269
252
$ sudo rm /etc/apt/sources.list.d/docker.list
0 commit comments