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.

  • SinTan1729@programming.dev
    link
    fedilink
    English
    arrow-up
    5
    ·
    19 hours ago

    The question has been answered. But since you seem to be new to containers, I’ll just give you a recommendation. Just use podman. It can do pretty much everything that docker is used for, but it’s rootless by default.

    • IronKrill@lemmy.ca
      link
      fedilink
      arrow-up
      1
      ·
      15 minutes ago

      Question since you seem to know more than the average, is Podman not harder to set up? It’s part of what has held me off from it, because I’ve heard it’s more difficult to achieve things with it than Docker. Is that wrong?