Skip to content

Commit d24440e

Browse files
committed
debian
1 parent fd57681 commit d24440e

File tree

1 file changed

+23
-40
lines changed

1 file changed

+23
-40
lines changed

content/manuals/engine/install/debian.md

Lines changed: 23 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -22,25 +22,16 @@ To get started with Docker Engine on Debian, make sure you
2222

2323
### Firewall limitations
2424

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).
3931

4032
### OS requirements
4133

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:
4435

4536
- Debian Trixie 13 (testing)
4637
- Debian Bookworm 12 (stable)
@@ -51,13 +42,8 @@ and ppc64le (ppc64el) architectures.
5142

5243
### Uninstall old versions
5344

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:
6147

6248
- `docker.io`
6349
- `docker-compose`
@@ -75,12 +61,11 @@ Run the following command to uninstall all conflicting packages:
7561
$ for pkg in docker.io docker-doc docker-compose podman-docker containerd runc; do sudo apt-get remove $pkg; done
7662
```
7763

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.
7967
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).
8469

8570
## Installation methods
8671

@@ -135,7 +120,7 @@ Docker from the repository.
135120
> Replace this part with the codename of the corresponding Debian release,
136121
> such as `bookworm`.
137122
138-
2. Install the Docker packages.
123+
1. Install the Docker packages.
139124
140125
{{< tabs >}}
141126
{{< tab name="Latest" >}}
@@ -171,7 +156,7 @@ Docker from the repository.
171156
{{< /tab >}}
172157
{{< /tabs >}}
173158

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:
175160

176161
```console
177162
$ sudo docker run hello-world
@@ -192,19 +177,17 @@ choosing the new version you want to install.
192177

193178
### Install from a package
194179

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:
198181

199182
<!-- markdownlint-disable-next-line -->
200183
1. Go to [`{{% param "download-url-base" %}}/dists/`]({{% param "download-url-base" %}}/dists/).
201184

202-
2. Select your Debian version in the list.
185+
1. Select your Debian version in the list.
203186

204-
3. Go to `pool/stable/` and select the applicable architecture (`amd64`,
187+
1. Go to `pool/stable/` and select the applicable architecture (`amd64`,
205188
`armhf`, `arm64`, or `s390x`).
206189

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,
208191
and Docker Compose packages:
209192

210193
- `containerd.io_<version>_<arch>.deb`
@@ -213,7 +196,7 @@ download a new file each time you want to upgrade Docker Engine.
213196
- `docker-buildx-plugin_<version>_<arch>.deb`
214197
- `docker-compose-plugin_<version>_<arch>.deb`
215198

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
217200
where you downloaded the Docker packages.
218201

219202
```console
@@ -226,7 +209,7 @@ download a new file each time you want to upgrade Docker Engine.
226209

227210
The Docker daemon starts automatically.
228211

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:
230213

231214
```console
232215
$ sudo service docker start
@@ -255,15 +238,15 @@ To upgrade Docker Engine, download the newer package files and repeat the
255238
$ sudo apt-get purge docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin docker-ce-rootless-extras
256239
```
257240

258-
2. Images, containers, volumes, or custom configuration files on your host
241+
1. Images, containers, volumes, or custom configuration files on your host
259242
aren't automatically removed. To delete all images, containers, and volumes:
260243

261244
```console
262245
$ sudo rm -rf /var/lib/docker
263246
$ sudo rm -rf /var/lib/containerd
264247
```
265248

266-
3. Remove source list and keyrings
249+
1. Remove source list and keyrings
267250

268251
```console
269252
$ sudo rm /etc/apt/sources.list.d/docker.list

0 commit comments

Comments
 (0)