title: Rootless-ly Running Docker Daemon inside another Docker container
body: <p>According to Docker official website: <a href="https://docs.docker.com/engine/security/rootless/" rel="nofollow noreferrer">https://docs.docker.com/engine/security/rootless/</a> it's possible to run Docker Daemon rootless-ly (without root access, no --privileged flag).</p>
  <p>However I'm convinced this would not work when running from inside a Docker container. There is no way of getting <code>modprobe</code> inside a Docker container without root access (--privileged). So it's not possible to install the Docker rootless script.</p>
  <p>Supposedly there is an official image in Docker hub: <code>docker:dind-rootless</code> image <a href="https://github.com/docker-library/docker/blob/25c81c65fe4e971ff75e67df38e8b9970b523f6e/19.03/dind-rootless/Dockerfile" rel="nofollow noreferrer">here</a> So I pulled the image and SSH'd into the container, however I'm getting the following error when running <code>dockerd</code></p>
  <p><code>INFO[2020-07-17T20:50:32.355617100Z] Starting up dockerd needs to be started with root. To see how to run dockerd in rootless mode with unprivileged user, see the documentation</code></p>
  <p>Any suggestions on how to run Docker daemon rootlessly inside another Docker container? I know this is possible with root, but is there a way to do without? I can't get root access as I'm deploying to AWS fargate, which doesn't support privileged access at the container level.</p>