• oranki@sopuli.xyz
      link
      fedilink
      English
      arrow-up
      18
      ·
      1 year ago

      In my limited experience, when Podman seems more complicated than Docker, it’s because the Docker daemon runs as root and can by default do stuff Podman can’t without explicitly giving it permission to do so.

      99% of the stuff self-hosters run on regular rootful Docker can run with no issues using rootless Podman.

      Rootless Docker is an option, but my understanding is most people don’t bother with it. Whereas with Podman it’s the default.

      Docker is good, Podman is good. It’s like comparing distros, different tools for roughly the same job.

      Pods are a really powerful feature though.

        • oranki@sopuli.xyz
          link
          fedilink
          English
          arrow-up
          3
          ·
          1 year ago

          on surface they may look like they are overlapping solutions to the untrained eye.

          You’ll need to elaborate on this, since AFAIK Podman is literally meant as a replacement for Docker. My untrained eye can’t see what your trained eye can see under the surface.

            • oranki@sopuli.xyz
              link
              fedilink
              English
              arrow-up
              4
              ·
              1 year ago

              Perhaps I misunderstand the words “overlapping” and “hot-swappable” in this case, I’m not a native english speaker. To my knowledge they’re not the same thing.

              In my opinion wanting to run an extra service as root to be able to e.g. serve a webapp on an unprivileged port is just strange. But I’ve been using Podman for quite some time. Using Docker after Podman is a real pain, I’ll give you that.

    • Dandroid@dandroid.app
      link
      fedilink
      English
      arrow-up
      5
      ·
      1 year ago

      I use podman because it’s more secure. I’m willing to put in the extra effort so that all my services aren’t running as root. If it turns out a vulnerability is discovered in lemmy tomorrow that allows people to access my server through my lemmy container, the attacker will only have access to a dummy account that hosts my containers. Yes, they could stop all my containers, but they can’t delete the volumes or any other data on my server.

        • Dandroid@dandroid.app
          link
          fedilink
          English
          arrow-up
          7
          ·
          1 year ago

          Don’t let perfection be the enemy of good. Security is not all or nothing. Reducing the attack surface is still important.

          Can you elaborate on running docker daemon as rootless? It’s my understanding that you can add your account to a group to access the docker daemon rootless, but the containers are still running as root, as the daemon itself raises the access to root.

            • Dandroid@dandroid.app
              link
              fedilink
              English
              arrow-up
              4
              ·
              1 year ago

              I never said I was relying on it alone. Not sure why you think that.

              That’s a great link. Thank you for sharing. It’s good that docker supports this functionality now.

                • BlueBockser@programming.dev
                  link
                  fedilink
                  English
                  arrow-up
                  1
                  arrow-down
                  1
                  ·
                  1 year ago

                  I think you’re interpreting too much. Security is about layers and making it harder for attackers, and that’s exactly what using a non-root user does.

                  In that scenario, the attacker needs to find and exploit another vulnerability to gain root access, which takes time - time which the attacker might not be willing to spend and time which you can use to respond.

          • icedterminal@lemmy.world
            link
            fedilink
            English
            arrow-up
            2
            ·
            1 year ago

            but the containers are still running as root, as the daemon itself raises the access to root.

            No. The daemon can run without root, as such the containers don’t have root. My docker install doesn’t have root access. None of my stacks / containers need any root access tbh. I don’t have any troubles with deplyong stuff.

            https://docs.docker.com/engine/security/rootless/

    • poVoq@slrpnk.net
      link
      fedilink
      English
      arrow-up
      6
      ·
      1 year ago

      If you make something with Podman yourself it is actually less work most of the time (the OP tutorial is incredibly convoluted for no reason).

      But sure, if someone else did all the work for you and you just need to download the docker-compose file and run it, that is of course less work for you. But that is just a result of Docker’s relative popularity compared to Podman.

        • poVoq@slrpnk.net
          link
          fedilink
          English
          arrow-up
          2
          ·
          edit-2
          1 year ago

          Yes, but only 10% or so of the article is about what you actually need to know to use Quadlet and the rest is some convoluted mess that I don’t know why the author bothered with sharing that.

          • tenchiken@lemmy.dbzer0.com
            link
            fedilink
            English
            arrow-up
            1
            ·
            1 year ago

            Major typically writes these as much for his own notes / thoughts as anything. Having some insight into how he got where he is in the process can help some others learn. I’ve learned tons from the guy.

            I’ve known him over 15 years, and he always has written posts for himself first. This isn’t a bad way, just maybe not the simplest for experienced folks. Laying out your own thoughts along the path can help later when you wonder why you did X instead of Y.