On my server, I’ve noticed that I can run docker commands like docker compose up -d or docker run hello-world without root (sudo, su, etc), as if I had done the rootless setup, but docker info reveals “context: default”. I am also not using userns-remap. Any theories for what’s going on here?

Edit: [Solved] @cosmicrose@lemmy.blahaj.zone pointed out that users in the docker group can run commands without sudo, after checking, my user is indeed in the group.

you are viewing a single comment's thread
view the rest of the comments
[–] 19 points 2 months ago (1 child)

Is your user in the docker group? That group can run docker commands without sudo.

  • source
  • hideshow 1 child comment