You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
engine/security/rootless: remove outdated/duplicated info
Setup:
- `dockerd-rootless-setuptool.sh` has been improved to show help when the prerequisites are not satisfied.
Users no longer need to read the **lengthy** "prerequisites" documentation unless they encounter issues.
- The document had duplicated descriptions about dbus, uidmap, and machinectl stuffs in several places.
Graph drivers:
- Rootless OverlayFS has been merged into the upstream since kernel 5.11:
torvalds/linux@459c7c5 .
Ubuntu no longer patches the kernel.
- FUSE-OverlayFS is typically no longer needed on the current supported distros,
except EL 8.
SELinux:
- Remove a workaround for an issue that was already fixed in Docker Engine v20.10.8.
CLI:
- `docker context use rootless` no longer needs to be executed manually,
since Docker v23. (moby/moby PR 43061)
Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
Copy file name to clipboardExpand all lines: content/manuals/engine/security/rootless/troubleshoot.md
+2-42Lines changed: 2 additions & 42 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,19 +7,8 @@ weight: 30
7
7
8
8
### Distribution-specific hint
9
9
10
-
> [!TIP]
11
-
>
12
-
> We recommend that you use the Ubuntu kernel.
13
-
14
10
{{< tabs >}}
15
11
{{< tab name="Ubuntu" >}}
16
-
- Install `dbus-user-session` package if not installed. Run `sudo apt-get install -y dbus-user-session` and relogin.
17
-
- Install `uidmap` package if not installed. Run `sudo apt-get install -y uidmap`.
18
-
- If running in a terminal where the user was not directly logged into, you will need to install `systemd-container` with `sudo apt-get install -y systemd-container`, then switch to TheUser with the command `sudo machinectl shell TheUser@`.
- Ubuntu 24.04 and later enables restricted unprivileged user namespaces by
24
13
default, which prevents unprivileged processes in creating user namespaces
25
14
unless an AppArmor profile is configured to allow programs to use
@@ -56,30 +45,11 @@ weight: 30
56
45
```
57
46
58
47
{{< /tab >}}
59
-
{{< tab name="Debian GNU/Linux" >}}
60
-
- Install `dbus-user-session` package if not installed. Run `sudo apt-get install -y dbus-user-session` and relogin.
61
-
62
-
- For Debian 11, installing `fuse-overlayfs` is recommended. Run `sudo apt-get install -y fuse-overlayfs`.
63
-
This step is not required on Debian 12.
64
-
65
-
- Rootless docker requires version of `slirp4netns` greater than `v0.4.0` (when `vpnkit` is not installed).
66
-
Check you have this with
67
-
68
-
```console
69
-
$ slirp4netns --version
70
-
```
71
-
If you do not have this download and install with `sudo apt-get install -y slirp4netns` or download the latest [release](https://github.com/rootless-containers/slirp4netns/releases).
72
-
{{< /tab >}}
73
48
{{< tab name="Arch Linux" >}}
74
-
- Installing `fuse-overlayfs` is recommended. Run `sudo pacman -S fuse-overlayfs`.
75
-
76
49
- Add `kernel.unprivileged_userns_clone=1` to `/etc/sysctl.conf` (or
77
50
`/etc/sysctl.d`) and run `sudo sysctl --system`
78
51
{{< /tab >}}
79
52
{{< tab name="openSUSE and SLES" >}}
80
-
- For openSUSE 15 and SLES 15, Installing `fuse-overlayfs` is recommended. Run `sudo zypper install -y fuse-overlayfs`.
81
-
This step is not required on openSUSE Tumbleweed.
82
-
83
53
- `sudo modprobe ip_tables iptable_mangle iptable_nat iptable_filter` is required.
84
54
This might be required on other distributions as well depending on the configuration.
85
55
@@ -96,7 +66,7 @@ weight: 30
96
66
## Known limitations
97
67
98
68
- Only the following storage drivers are supported:
99
-
-`overlay2` (only if running with kernel 5.11 or later, or Ubuntu-flavored kernel)
69
+
- `overlay2` (only if running with kernel 5.11 or later)
100
70
- `fuse-overlayfs` (only if running with kernel 4.18 or later, and `fuse-overlayfs` is installed)
101
71
- `btrfs` (only if running with kernel 4.18 or later, or `~/.local/share/docker` is mounted with `user_subvol_rm_allowed` mount option)
102
72
- `vfs`
@@ -197,17 +167,7 @@ Instead of `sudo -iu <USERNAME>`, you need to log in using `pam_systemd`. For ex
197
167
**The daemon does not start up automatically**
198
168
199
169
You need `sudo loginctl enable-linger $(whoami)` to enable the daemon to start
0 commit comments