Docker Rootless in Docker Rootless, It's possible?

For my job I would like to run Jenkins and Docker Rootless, all in a Docker Rootless installation.

I would like this because I need a secure environment as I do not inspect Jenkins pipelines

But when I run rootless docker in rootless docker, I get this error:

[rootlesskit:parent] error: failed to setup UID/GID map: newuidmap 54 [0 1000 1 1 100000 65536] failed: newuidmap: write to uid_map failed: Operation not permitted
: exit status 1

I have tried many actions but failed to get it to work. Anyone have a solution to do this, please?

Thanks for reading me, have a nice day!

I don’t believe rootless Docker can run the docker:dind image yet.

But there is a new runc called Sysbox, that enables Docker to create rootless containers inside of which you can Docker itself.

It’s very useful for CI/CD, local testing, dev environments, etc., and there are plenty of examples in this blog.

Hope that helps!

Hello, yes I spotted it, thank you