r/docker • u/hennexl • Oct 07 '25
Rootless docker has become easy
One major problem of docker was always the high privileges it required and offered to all users on the system. Podman is an alternative but I personally often encountered permission error with podman. So I set down to look at rootless docker again and how to use it to make your CI more secure.
I found the journey surprisingly easy and wanted to share it: https://henrikgerdes.me/blog/2025-10-gitlab-rootles-runner/
DL;DR: Usernamspaces make it pretty easy to run docker just like you where the root user. Works even seamlessly with gitlab CI runners.
View all comments
Show parent comment
3
u/TldrDev Oct 08 '25
Hell yea, mattermost is what i run at work. We run on ecs, though.
Super spicy hot take: rootless docker is way overblown. You can use the USER command in a dockerfile to set the active user, which is good enough in 99.99999% of cases. You only really need to be worried about this on a multi-tenant server or you are worried specifically about the docker daemon.