File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed
Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,10 @@ services:
33 build :
44 context : docker
55 dockerfile : Dockerfile
6+ # Instead of privileged: true, grant only the minimum privileges required
7+ # to run BuildKit and iptables. This avoids granting full device access
8+ # and unrestricted /sys write permissions that privileged mode includes.
9+ #
610 # BuildKit OCI worker requires SYS_ADMIN for mount, namespaces, and cgroups.
711 # iptables and CNI networking require NET_ADMIN.
812 # runc needs SYS_PTRACE to access /proc/PID/ns/mnt for mount namespace setup.
Original file line number Diff line number Diff line change 11services :
22 builder :
33 image : ${BUILDCAGE_IMAGE}:${BUILDCAGE_VERSION:-1}
4+ # Instead of privileged: true, grant only the minimum privileges required
5+ # to run BuildKit and iptables. This avoids granting full device access
6+ # and unrestricted /sys write permissions that privileged mode includes.
7+ #
48 # BuildKit OCI worker requires SYS_ADMIN for mount, namespaces, and cgroups.
59 # iptables and CNI networking require NET_ADMIN.
610 # runc needs SYS_PTRACE to access /proc/PID/ns/mnt for mount namespace setup.
You can’t perform that action at this time.
0 commit comments