From 66b96d6337ae466c3dfcd754f5e737b46816aa64 Mon Sep 17 00:00:00 2001 From: David Karlsson <35727626+dvdksn@users.noreply.github.com> Date: Wed, 13 Mar 2024 15:20:43 +0100 Subject: [PATCH] engine: add note about nftables incompatibility to install docs Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com> --- content/engine/install/debian.md | 21 ++++++++++++++++----- content/engine/install/raspberry-pi-os.md | 21 ++++++++++++++++----- content/engine/install/ubuntu.md | 21 ++++++++++++++++----- 3 files changed, 48 insertions(+), 15 deletions(-) diff --git a/content/engine/install/debian.md b/content/engine/install/debian.md index 8def7bc2da..c123f09269 100644 --- a/content/engine/install/debian.md +++ b/content/engine/install/debian.md @@ -18,12 +18,23 @@ To get started with Docker Engine on Debian, make sure you ## Prerequisites -> **Note** +### Firewall limitations + +> **Warning** > -> If you use ufw or firewalld to manage firewall settings, be aware that -> when you expose container ports using Docker, these ports bypass your -> firewall rules. For more information, refer to -> [Docker and ufw](../../network/packet-filtering-firewalls.md#docker-and-ufw). +> Before you install Docker, make sure you consider the following +> security implications and firewall incompatibilities. +{ .warning } + +- If you use ufw or firewalld to manage firewall settings, be aware that + when you expose container ports using Docker, these ports bypass your + firewall rules. For more information, refer to + [Docker and ufw](../../network/packet-filtering-firewalls.md#docker-and-ufw). +- Docker is only compatible with `iptables-nft` and `iptables-legacy`. + Firewall rules created with `nft` are not supported on a system with Docker installed. + Make sure that any firewall rulesets you use are created with `iptables` or `iptables6`, + and that you add them to the `DOCKER-USER` chain, + see [Packet filtering and firewalls](../../network/packet-filtering-firewalls.md). ### OS requirements diff --git a/content/engine/install/raspberry-pi-os.md b/content/engine/install/raspberry-pi-os.md index 6258cb9d96..0e4553cfd8 100644 --- a/content/engine/install/raspberry-pi-os.md +++ b/content/engine/install/raspberry-pi-os.md @@ -24,12 +24,23 @@ To get started with Docker Engine on Raspberry Pi OS, make sure you ## Prerequisites -> **Note** +### Firewall limitations + +> **Warning** > -> If you use ufw or firewalld to manage firewall settings, be aware that -> when you expose container ports using Docker, these ports bypass your -> firewall rules. For more information, refer to -> [Docker and ufw](../../network/packet-filtering-firewalls.md#docker-and-ufw). +> Before you install Docker, make sure you consider the following +> security implications and firewall incompatibilities. +{ .warning } + +- If you use ufw or firewalld to manage firewall settings, be aware that + when you expose container ports using Docker, these ports bypass your + firewall rules. For more information, refer to + [Docker and ufw](../../network/packet-filtering-firewalls.md#docker-and-ufw). +- Docker is only compatible with `iptables-nft` and `iptables-legacy`. + Firewall rules created with `nft` are not supported on a system with Docker installed. + Make sure that any firewall rulesets you use are created with `iptables` or `iptables6`, + and that you add them to the `DOCKER-USER` chain, + see [Packet filtering and firewalls](../../network/packet-filtering-firewalls.md). ### OS requirements diff --git a/content/engine/install/ubuntu.md b/content/engine/install/ubuntu.md index 1e30c06453..196f3102b6 100644 --- a/content/engine/install/ubuntu.md +++ b/content/engine/install/ubuntu.md @@ -26,12 +26,23 @@ To get started with Docker Engine on Ubuntu, make sure you ## Prerequisites -> **Note** +### Firewall limitations + +> **Warning** > -> If you use ufw or firewalld to manage firewall settings, be aware that -> when you expose container ports using Docker, these ports bypass your -> firewall rules. For more information, refer to -> [Docker and ufw](../../network/packet-filtering-firewalls.md#docker-and-ufw). +> Before you install Docker, make sure you consider the following +> security implications and firewall incompatibilities. +{ .warning } + +- If you use ufw or firewalld to manage firewall settings, be aware that + when you expose container ports using Docker, these ports bypass your + firewall rules. For more information, refer to + [Docker and ufw](../../network/packet-filtering-firewalls.md#docker-and-ufw). +- Docker is only compatible with `iptables-nft` and `iptables-legacy`. + Firewall rules created with `nft` are not supported on a system with Docker installed. + Make sure that any firewall rulesets you use are created with `iptables` or `iptables6`, + and that you add them to the `DOCKER-USER` chain, + see [Packet filtering and firewalls](../../network/packet-filtering-firewalls.md). ### OS requirements