Skip to content

Commit 5ac014b

Browse files
authored
Merge pull request #25772 from locker95/docs/rootless-cap-limits
docs(rootless): note kernel limits on --cap-add capabilities
2 parents 20c7286 + adac102 commit 5ac014b

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

content/manuals/engine/security/rootless/troubleshoot.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,11 @@ weight: 30
8282
- Port forwarding with `docker run -p` does not propagate source IP addresses by default.
8383
See [`docker run -p` does not propagate source IP addresses](#docker-run--p-does-not-propagate-source-ip-addresses) to enable source IP propagation.
8484
- NFS mounts as the docker "data-root" is not supported. This limitation is not specific to rootless mode.
85+
- Capabilities added with `--cap-add` apply only to resources governed by the
86+
container's user namespace. They don't grant privileges over host or other
87+
global resources. As a result, operations that require capabilities in the
88+
[initial user namespace](https://man7.org/linux/man-pages/man7/user_namespaces.7.html)
89+
can still fail.
8590

8691
### Historical limitations
8792

0 commit comments

Comments
 (0)