• lemmyvore@feddit.nl
    link
    fedilink
    English
    arrow-up
    40
    arrow-down
    8
    ·
    11 months ago

    Docker. It’s been around longer, it’s more polished, easier to learn, simpler to use, supported everywhere and by everything, easy to find solutions when you search for help, doesn’t depend on systemd, compatible with every container image out there, and you can do things with it even if it’s not the “correct” way to do it while podman will tell you “no, you can’t do that”.

  • Yoddel_Hickory@lemmy.ca
    link
    fedilink
    English
    arrow-up
    22
    arrow-down
    4
    ·
    11 months 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
      11 months 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.

    • Discover5164@lemm.ee
      link
      fedilink
      English
      arrow-up
      1
      arrow-down
      1
      ·
      11 months 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
        9
        ·
        11 months 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

          • worldofgeese@lemmy.world
            link
            fedilink
            English
            arrow-up
            2
            ·
            edit-2
            11 months 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
              ·
              11 months ago

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

  • Possibly linux@lemmy.zip
    link
    fedilink
    English
    arrow-up
    3
    ·
    11 months ago

    Docker if you are unsure how to begin. You can use docker compose with configs you find on the internet.

    If your interested in podman I would start by using it though distrobox. Distrobox is a tool that allows other Linux environments on your host system and is really good for development

  • Cyclohexane@lemmy.ml
    link
    fedilink
    English
    arrow-up
    2
    ·
    11 months ago

    I use podman, even when I started out. But I am a tinkerer. I think for the average beginner, docker will be easier as so much out there assumes you are using Docker only, and hard codes it. Unless you wanna deal with that, use Docker.

  • iluminae@lemmy.world
    link
    fedilink
    English
    arrow-up
    2
    ·
    11 months ago

    A year or two ago (whenever docker changed the business license of docker for Mac) I changed to podman and aliased docker=podman. It behaves the same, you would just about never know rootful podman vs docker.

    Rootless podman is super cool and a much better security ideal - but comparing more apples to apples would be podman running as root vs docker.

  • Molecular0079@lemmy.world
    link
    fedilink
    English
    arrow-up
    2
    ·
    11 months ago

    I started with Docker and then migrated to Podman for the integrated Cockpit dashboard support. All my docker-compose files work transparently on top of rootful Podman so the migration was relatively easy. Things get finicky when you try to go rootless though.

    I say try both. Rootful podman is gonna be closest to the Docker experience.

  • ikidd@lemmy.world
    link
    fedilink
    English
    arrow-up
    4
    arrow-down
    2
    ·
    11 months ago

    If you’re running it for your own network, just use Docker. The tooling is way, way better for docker, especially for a beginner.

      • lemmyvore@feddit.nl
        link
        fedilink
        English
        arrow-up
        2
        arrow-down
        3
        ·
        11 months ago

        Except in real life you’ll run into images that podman refuses to work with all the time.

        • krolden@lemmy.ml
          link
          fedilink
          English
          arrow-up
          1
          ·
          11 months ago

          Example? Ive definitely had compose projects that I had a hard time running with podman but all the individual containers seem to work just fine.

  • nonprofitparrot@lemmy.world
    link
    fedilink
    English
    arrow-up
    3
    arrow-down
    2
    ·
    11 months ago

    I do a lot of docker/k8s at work, and I use podman at home. Podman is very cool in theory but still rough around the edges. I recommend docker if you just want to get started, Podman is a little extra work.

  • hottari@lemmy.ml
    link
    fedilink
    English
    arrow-up
    5
    arrow-down
    5
    ·
    11 months ago

    Docker because it just works. Podman has another 5 years (hopefully) to get this part right IMO.