• qaz@lemmy.world
    link
    fedilink
    English
    arrow-up
    2
    ·
    edit-2
    2 years ago

    How do you automatically start podman containers? I currently just manually add systemd entries but that’s a lot more cumbersome than Docker which doesn’t require you to do anything at all.

    • Yoddel_Hickory@lemmy.ca
      link
      fedilink
      English
      arrow-up
      3
      ·
      2 years ago

      I use Quadlet, which is now merged in podman. The only issue I had with it is running system systemd services as other (rootless) users, I can’t get it to create cid files that the users can access. In those cases only, I have to modify the generated services files, which defeats the purpose.

    • witten@lemmy.world
      link
      fedilink
      English
      arrow-up
      2
      ·
      2 years ago

      Since I use Docker Compose with Podman, I just make a single systemd service to run Docker Compose on boot, thereby starting all my containers at once.

      • qaz@lemmy.world
        link
        fedilink
        English
        arrow-up
        1
        ·
        2 years ago

        That’s an interesting way to do it. Do you have everything in 1 compose file?

        • witten@lemmy.world
          link
          fedilink
          English
          arrow-up
          2
          ·
          2 years ago

          I have one Compose file per stack, which is an application and all of its containers, databases, etc. Pretty much the same way I organized things with just Docker.