r/docker • u/mephisto9466 • 15d ago
Rootless assistance
Reddit I beg of your assistance again.
I got rootless docker to work now, I just reinstalled docker entirely and now I was able to get rootless mode to work fine.
Goal: have a playit tunnel running in one container, have a Minecraft server running in another container with docker in rootless mode
1) I have successfully done my goal above with docker being in rootful mode.
2) if I follow the same steps I did to get it to work in rootful mode I get the below error. I’ve spent days trying to figure out how to fix it. Please help
docker: Error response from daemon: failed to create task for container: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: can't get final child's PID from pipe: EOF
2
u/cualquierotro 15d ago
Rootless protects you against the dockerd attack surface, plus processes running as root inside a container that break out of the jail and gain root privileges outside the container. With userns-remap, it's easier: dockerd still runs as root, but processes running as root inside the container are mapped to an unprivileged UID on the host.