Cult I Mean Group
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
folak@lemmy.world to Selfhosted@lemmy.worldEnglish · 2 years ago

Docker vs Podman, which one to choose for a beginner and why ?

message-square
message-square
52
fedilink
67
message-square

Docker vs Podman, which one to choose for a beginner and why ?

folak@lemmy.world to Selfhosted@lemmy.worldEnglish · 2 years ago
message-square
52
fedilink
  • Yoddel_Hickory@lemmy.ca
    link
    fedilink
    English
    arrow-up
    27
    arrow-down
    5
    ·
    2 years ago

    Podman, rootless containers work well, and there is no central process running everything. I like that starting containers on boot is integrated with systemd.

    • qaz@lemmy.world
      link
      fedilink
      English
      arrow-up
      3
      ·
      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
        6
        ·
        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.

      • completion@lemmy.one
        link
        fedilink
        English
        arrow-up
        5
        ·
        2 years ago

        Check out: https://docs.podman.io/en/latest/markdown/podman-systemd.unit.5.html

      • lemmyvore@feddit.nl
        link
        fedilink
        English
        arrow-up
        4
        ·
        2 years ago

        That’s how you do it, you have to write systemd config files for each container. And because it was cumbersome they’ve come up with third party tools that write them for you and launch the container. 😉

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

        https://www.redhat.com/sysadmin/quadlet-podman

      • witten@lemmy.world
        link
        fedilink
        English
        arrow-up
        2
        ·
        edit-2
        10 days ago

        deleted by creator

        • 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
            ·
            edit-2
            10 days ago

            deleted by creator

    • Discover5164@lemm.ee
      link
      fedilink
      English
      arrow-up
      1
      arrow-down
      1
      ·
      2 years ago

      i would like to try… but as far as i know, there is no “docker compose up -d”

      • MartianSands@sh.itjust.works
        link
        fedilink
        English
        arrow-up
        10
        ·
        2 years ago

        Podman supports docker compose just fine. You have to run it as a service, so that it can expose a socket like docker does, but it supports doing exactly that

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

        Apparently it does! podman-compose

        • Discover5164@lemm.ee
          link
          fedilink
          English
          arrow-up
          1
          ·
          2 years ago

          cool, thank you!

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

            Check my comment history for an example of a simple bind mount compose.yaml I use for developing a small Python project. It’s exactly the same as Docker Compose (since Podman Compose follows the Compose spec) but if you’re just getting started, it might be a good skeleton to build on.

            • Discover5164@lemm.ee
              link
              fedilink
              English
              arrow-up
              2
              ·
              2 years ago

              i have all my stacks on docker compose. if it follows the same specks, i would only need to convert volumes and networks

Selfhosted@lemmy.world

selfhosted@lemmy.world

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !selfhosted@lemmy.world

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don’t control.

Rules:

  1. Be civil: we’re here to support and learn from one another. Insults won’t be tolerated. Flame wars are frowned upon.

  2. No spam posting.

  3. Posts have to be centered around self-hosting. There are other communities for discussing hardware or home computing. If it’s not obvious why your post topic revolves around selfhosting, please include details to make it clear.

  4. Don’t duplicate the full text of your blog or github here. Just post the link for folks to click.

  5. Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).

  6. No trolling.

  7. No low-effort posts. This is subjective and will largely be determined by the community member reports.

Resources:

  • selfh.st Newsletter and index of selfhosted software and apps
  • awesome-selfhosted software
  • awesome-sysadmin resources
  • Self-Hosted Podcast from Jupiter Broadcasting

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 382 users / day
  • 2.13K users / week
  • 6.98K users / month
  • 16.2K users / 6 months
  • 1 local subscriber
  • 57K subscribers
  • 5.89K Posts
  • 133K Comments
  • Modlog
  • mods:
  • Ruud@lemmy.world
  • Loki@lemmy.world
  • CannaVet@lemmy.world
  • devve@lemmy.world
  • HybridSarcasm@lemmy.world
  • HybridSarcasm@lemmy.hybridsarcasm.xyz
  • BE: 0.19.8
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org