Files
lxd-profiles/profiles/containerization/docker-unprivileged.profile.yaml
T
xavierandClaude Opus 5.5 f37c01df57 feat: Switch profiles to cgroup v2 and drop raw.lxc from docker profiles
- Use lxc.cgroup2.devices.allow instead of the cgroup v1 key, ignored on
  cgroup v2 hosts (Ubuntu >= 21.10)
- Remove raw.lxc (unconfined apparmor, all devices, no cap drop) from
  docker, dokploy and coolify: privileged + nesting is enough, tested
  with build, published ports, privileged containers, limits and restart
- Add docker-unprivileged profile (nesting + mknod/setxattr syscall
  interception) for new containers
- Sync microk8s with the deployed version (device numbering)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018inUJksoKAfKRWoSo1tvv6
2026-11-21 00:27:16 +01:00

19 lines
572 B
YAML

name: docker-unprivileged
description: "A profile that deploy docker in an unprivileged LXD container"
config:
linux.kernel_modules: overlay
security.nesting: "true"
# Requis pour les images dont les couches créent des device nodes ou des xattrs
security.syscalls.intercept.mknod: "true"
security.syscalls.intercept.setxattr: "true"
cloud-init.vendor-data: |
#cloud-config
package_update: true
package_upgrade: true
packages:
- curl
runcmd:
- curl https://get.docker.com | sh
timezone: Europe/Paris
locale: fr_FR.UTF-8