Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

agnos.is Forums

  1. Home
  2. Selfhosted
  3. Podman Quadlets are so cool

Podman Quadlets are so cool

Scheduled Pinned Locked Moved Selfhosted
selfhosted
27 Posts 15 Posters 0 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K [email protected]

    I love the concept too and I just hope it will catch on much more than this.
    To convert your compose files you could use Podlet.
    I'm also working on converting it to JavaScript(PodletJS) so it's available in it-tools.

    Go for Podlet though, really nice for command lines.

    Sorry for all the links, I got overly excited 😆

    B This user is from outside of this forum
    B This user is from outside of this forum
    [email protected]
    wrote last edited by
    #8

    I used podlet on my compose file. I was a little disappointed in the limitations, as a lot of things like variable interpolation isn't available.

    That said, the output made me wonder why I've waited! It was so much simpler than I imagined. It also helped demystify unit files a bit more.

    1 Reply Last reply
    1
    • B [email protected]

      I don't really have anyone else to shout at about this, but it's an amazing way to host services in rootless containers entirely in user space using systemd (systemctl --user).

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

      G This user is from outside of this forum
      G This user is from outside of this forum
      [email protected]
      wrote last edited by
      #9

      hell yeah! i moved my whole setup from docker to podman with systemd with quadlets. auto updates and everything. so smooth.

      1 Reply Last reply
      4
      • B [email protected]

        I don't really have anyone else to shout at about this, but it's an amazing way to host services in rootless containers entirely in user space using systemd (systemctl --user).

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

        possiblylinux127@lemmy.zipP This user is from outside of this forum
        possiblylinux127@lemmy.zipP This user is from outside of this forum
        [email protected]
        wrote last edited by
        #10

        They are generally pretty good but troubleshooting them is a pain. Quadlets are also a bit more more complex than Docker compose.

        Note: User space includes root and anything not running in kernel space.

        B S nico_198x@europe.pubN 3 Replies Last reply
        2
        • possiblylinux127@lemmy.zipP [email protected]

          They are generally pretty good but troubleshooting them is a pain. Quadlets are also a bit more more complex than Docker compose.

          Note: User space includes root and anything not running in kernel space.

          B This user is from outside of this forum
          B This user is from outside of this forum
          [email protected]
          wrote last edited by
          #11

          I'm definitely interested in your experience and why you came to those conclusions because I'm not sure I can agree on the primary points.

          But I have to give you the note. Root is also user space (if privileged). I've barely ever done anything actually in kernel space, so I guess it's easy for me to screw that up.

          1 Reply Last reply
          0
          • B [email protected]

            I don't really have anyone else to shout at about this, but it's an amazing way to host services in rootless containers entirely in user space using systemd (systemctl --user).

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

            E This user is from outside of this forum
            E This user is from outside of this forum
            [email protected]
            wrote last edited by
            #12

            Nice, did the same for some services I run at home. Now in the process of migrating my stuff on my vps from docker compose to quadlets. It's a bit more involved but worth the QoL stuff quadlets bring with them, like automatic updates and systemd integration.
            I'm curious, which is your Linux distro of choice to run your podman quadlets on?

            B D 2 Replies Last reply
            0
            • possiblylinux127@lemmy.zipP [email protected]

              They are generally pretty good but troubleshooting them is a pain. Quadlets are also a bit more more complex than Docker compose.

              Note: User space includes root and anything not running in kernel space.

              S This user is from outside of this forum
              S This user is from outside of this forum
              [email protected]
              wrote last edited by
              #13

              Yeah I agree.

              I moved my stack from podman run to quadlets, but god damn was it frustrating to deal with them. I kept running into weird issues such as: the containers not starting every time on reboot, all containers taking like two minutes to start even without needing to download the image, the unit files not being found by systemd.

              I ended up moving back to podman run, because they just worked. It is a shame, to be honest, because I would like to use quadlets.

              1 Reply Last reply
              1
              • B [email protected]

                I don't really have anyone else to shout at about this, but it's an amazing way to host services in rootless containers entirely in user space using systemd (systemctl --user).

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

                O This user is from outside of this forum
                O This user is from outside of this forum
                [email protected]
                wrote last edited by
                #14

                If you want to use caddy as proxy for other containers running as quadlets have a look at this repo:
                https://github.com/eriksjolund/podman-caddy-socket-activation

                It certainly demystified some network shenanigans for me.

                nico_198x@europe.pubN 1 Reply Last reply
                1
                • K [email protected]

                  I love the concept too and I just hope it will catch on much more than this.
                  To convert your compose files you could use Podlet.
                  I'm also working on converting it to JavaScript(PodletJS) so it's available in it-tools.

                  Go for Podlet though, really nice for command lines.

                  Sorry for all the links, I got overly excited 😆

                  fisch@discuss.tchncs.deF This user is from outside of this forum
                  fisch@discuss.tchncs.deF This user is from outside of this forum
                  [email protected]
                  wrote last edited by
                  #15

                  Thank you for telling me about Podlet. I've been using podman-compose for all my containers but I've thought about converting them to systemd units. The only thing I'm unsure about is whether it'll still be easy to access the container files. Currently I have a containers folder with a folder for each service inside it. Inside that, there's the compose.yml and the folders with the container data. I map all container folders, with data that needs to be kept, to a folder that sits right next to the compose file. If it's just temporary data (like caches), I oftentimes map it to a volume because it doesn't matter if I lose it. Do you know if I can still do it like this (or in a similar way) if I use systemd units?

                  B 1 Reply Last reply
                  0
                  • E [email protected]

                    Nice, did the same for some services I run at home. Now in the process of migrating my stuff on my vps from docker compose to quadlets. It's a bit more involved but worth the QoL stuff quadlets bring with them, like automatic updates and systemd integration.
                    I'm curious, which is your Linux distro of choice to run your podman quadlets on?

                    B This user is from outside of this forum
                    B This user is from outside of this forum
                    [email protected]
                    wrote last edited by
                    #16

                    I'm now running quadlets on Garuda (my gaming/devbox), and Fedora. The impetus for this was needing to host service in an unprivileged way at work on RHEL9, so I got paid to do some learning with my own services.

                    My laptop is running Bazzite, but no services there.
                    I'll move the server to silverblue or another image based distro when I finish extracting the rest of my misadventures to containers.

                    nico_198x@europe.pubN 1 Reply Last reply
                    1
                    • B [email protected]

                      I don't really have anyone else to shout at about this, but it's an amazing way to host services in rootless containers entirely in user space using systemd (systemctl --user).

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

                      J This user is from outside of this forum
                      J This user is from outside of this forum
                      [email protected]
                      wrote last edited by
                      #17

                      I like them very much as well, only thing I'm annoyed about is that you always need to drag that --user option.... I mean, if I'm not using root or sudo, shouldn't it be clear that I'm talking about the user space?

                      B 1 Reply Last reply
                      4
                      • fisch@discuss.tchncs.deF [email protected]

                        Thank you for telling me about Podlet. I've been using podman-compose for all my containers but I've thought about converting them to systemd units. The only thing I'm unsure about is whether it'll still be easy to access the container files. Currently I have a containers folder with a folder for each service inside it. Inside that, there's the compose.yml and the folders with the container data. I map all container folders, with data that needs to be kept, to a folder that sits right next to the compose file. If it's just temporary data (like caches), I oftentimes map it to a volume because it doesn't matter if I lose it. Do you know if I can still do it like this (or in a similar way) if I use systemd units?

                        B This user is from outside of this forum
                        B This user is from outside of this forum
                        [email protected]
                        wrote last edited by
                        #18

                        The spec for quadlets has a few dedicated homes for the .pod, .container, etc. files. You can absolutely mount directories or files wherever (%h is $HOME for systemd unit files). See the Volume description for Container unit files: https://docs.podman.io/en/latest/markdown/podman-systemd.unit.5.html#volume

                        1 Reply Last reply
                        0
                        • J [email protected]

                          I like them very much as well, only thing I'm annoyed about is that you always need to drag that --user option.... I mean, if I'm not using root or sudo, shouldn't it be clear that I'm talking about the user space?

                          B This user is from outside of this forum
                          B This user is from outside of this forum
                          [email protected]
                          wrote last edited by
                          #19

                          Agreed! That would be a huge QoL improvement (and work just like the podman command does). Now I'm thinking about other commands that force this silliness, like pip.

                          J 1 Reply Last reply
                          0
                          • B [email protected]

                            Agreed! That would be a huge QoL improvement (and work just like the podman command does). Now I'm thinking about other commands that force this silliness, like pip.

                            J This user is from outside of this forum
                            J This user is from outside of this forum
                            [email protected]
                            wrote last edited by
                            #20

                            I'll probably just make an alias

                            1 Reply Last reply
                            2
                            • O [email protected]

                              If you want to use caddy as proxy for other containers running as quadlets have a look at this repo:
                              https://github.com/eriksjolund/podman-caddy-socket-activation

                              It certainly demystified some network shenanigans for me.

                              nico_198x@europe.pubN This user is from outside of this forum
                              nico_198x@europe.pubN This user is from outside of this forum
                              [email protected]
                              wrote last edited by
                              #21

                              Just want to chime in here to say I use containerized caddy as a reverse proxy with quadlets and did nothing special.

                              O 1 Reply Last reply
                              1
                              • B [email protected]

                                I'm now running quadlets on Garuda (my gaming/devbox), and Fedora. The impetus for this was needing to host service in an unprivileged way at work on RHEL9, so I got paid to do some learning with my own services.

                                My laptop is running Bazzite, but no services there.
                                I'll move the server to silverblue or another image based distro when I finish extracting the rest of my misadventures to containers.

                                nico_198x@europe.pubN This user is from outside of this forum
                                nico_198x@europe.pubN This user is from outside of this forum
                                [email protected]
                                wrote last edited by
                                #22

                                openSUSE MicroOS is amazing

                                1 Reply Last reply
                                1
                                • possiblylinux127@lemmy.zipP [email protected]

                                  They are generally pretty good but troubleshooting them is a pain. Quadlets are also a bit more more complex than Docker compose.

                                  Note: User space includes root and anything not running in kernel space.

                                  nico_198x@europe.pubN This user is from outside of this forum
                                  nico_198x@europe.pubN This user is from outside of this forum
                                  [email protected]
                                  wrote last edited by
                                  #23

                                  I hate docker compose and find that much more complicated. It's a whole other structure that's essentially unneeded.

                                  But I started with podman and not docker, so that's probably why

                                  1 Reply Last reply
                                  1
                                  • B [email protected]

                                    I don't really have anyone else to shout at about this, but it's an amazing way to host services in rootless containers entirely in user space using systemd (systemctl --user).

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

                                    nico_198x@europe.pubN This user is from outside of this forum
                                    nico_198x@europe.pubN This user is from outside of this forum
                                    [email protected]
                                    wrote last edited by
                                    #24

                                    Agreed. Quadlets and podman are amazing.

                                    1 Reply Last reply
                                    3
                                    • nico_198x@europe.pubN [email protected]

                                      Just want to chime in here to say I use containerized caddy as a reverse proxy with quadlets and did nothing special.

                                      O This user is from outside of this forum
                                      O This user is from outside of this forum
                                      [email protected]
                                      wrote last edited by
                                      #25

                                      Absolutely possible if you keep the network setup simple. However, I run different sets of containers as different users, some of which also use services from the host itself (such as a PostgreSQL instance), and things quickly become more complex in these situations. The examples on the github helped me a lot to realise everything I wanted.

                                      nico_198x@europe.pubN 1 Reply Last reply
                                      1
                                      • O [email protected]

                                        Absolutely possible if you keep the network setup simple. However, I run different sets of containers as different users, some of which also use services from the host itself (such as a PostgreSQL instance), and things quickly become more complex in these situations. The examples on the github helped me a lot to realise everything I wanted.

                                        nico_198x@europe.pubN This user is from outside of this forum
                                        nico_198x@europe.pubN This user is from outside of this forum
                                        [email protected]
                                        wrote last edited by
                                        #26

                                        Gotcha, makes sense. Yeah my setup is very straightforward

                                        1 Reply Last reply
                                        0
                                        • E [email protected]

                                          Nice, did the same for some services I run at home. Now in the process of migrating my stuff on my vps from docker compose to quadlets. It's a bit more involved but worth the QoL stuff quadlets bring with them, like automatic updates and systemd integration.
                                          I'm curious, which is your Linux distro of choice to run your podman quadlets on?

                                          D This user is from outside of this forum
                                          D This user is from outside of this forum
                                          [email protected]
                                          wrote last edited by
                                          #27

                                          ucore (soon to be cayo) on my home server!

                                          1 Reply Last reply
                                          0
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          • Login

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular
                                          • World
                                          • Users
                                          • Groups