Running rootless Docker-in-Docker on Ubuntu Noble
Intro I’m running a local Gitea instance to, amongst other things, make use of their !Github Actions and build some docker images for my own consumption. To enable this, I run their rootless DIND actions runner container. After upgrading my host machine from Ubuntu Jammy (22.04) to Noble (24.04) I found that the container was in a fun crash loop and couldn’t immediately identify why. Bloody Security Improvements In 23.10, Ubuntu helpfully restricted unprivileged user namespaces. Rootlesskit needs unprivileged user namespaces, and indeed bundles an apparmor profile that allows them, but for some reason they weren’t working for Docker-in-Docker (DIND). I could see apparmor audit events that seemed to suggest it should be working already: ...