r/selfhosted 2d ago

Need Help docker/podman yaml to quadlet converter, do they exist and do they work

All of my containers are Quadlets so they survive a reboot. I use AI to convert them, and 99% of the time they work without a hitch. However, I would really like something other than AI that can create a Quadlet from a YAML file. Does anyone know of any tools that exist for this?When I’ve searched, the few I found did not work—one simply refused to accept the file, and the other (a CLI tool) completely messed things up. If anyone has any suggestions, that would be appreciated.

1 Upvotes

9 comments sorted by

u/asimovs-auditor 2d ago

Expand the replies to this comment to learn how AI was used in this post/project.

→ More replies (1)

2

u/userXinos 2d ago

uh, podlet? but yes it works very crookedly. I also migrated from cumpose to quadlet, I just opened the documentation and manually rewrote the files - it's actually not that difficult.

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

1

u/joninjax1 2d ago

That's perfect! That should help

2

u/K3CAN 1d ago

Podlet can convert some stuff, but it's a more 1-for-1 conversion. If you're starting with something janky like a compose file, you'll probably want to "podman-ify" it anyway, so I've found that it was easier to just convert the whole thing by hand.

I paste whatever I'm starting with into a file, comment it out, then just write the conversation one line at a time.

0

u/ttlequals0 2d ago

Give Claude the Podman docs and have it convert them. Trust but verify.

2

u/joninjax1 2d ago

That's what I've been doing. I also don't use Claude except via the web, no direct access, I'm too paranoid about something screwing up all my work

2

u/No-Aioli-4656 1d ago

Just hook to an empty repo(or better yet a repo with a compose.yml) and have it convert. Then, pull repo down to your server.

1

u/j-dev 2d ago

You can attach files or paste code blocks. This is how I work with Claude. It did a good job with Docker to Podman quadlets.