Skip Navigation

A really helpful tool for converting from Docker to Podman

github.com GitHub - k9withabone/podlet: Generate podman quadlet (systemd-like) files from a podman command

Generate podman quadlet (systemd-like) files from a podman command - GitHub - k9withabone/podlet: Generate podman quadlet (systemd-like) files from a podman command

I've been using "Podlet" recently to convert my docker-compose.yaml files over to quadlet files. For those who aren't familiar, Quadlet is basically a halfway point between a compose file and a systemd entry and it simplifies the process for using systemd to manage your podman containers. This tool can convert podman run commands or docker-compose.yaml files into their appropriate quadlet files in one fell swoop. If you have some really complicated stuff going on with networks it may not work though. Especially if they origional docker file is trying to do stuff that's only possible with root.

Podlet can also be run as a container rather than directly installing it. If you do: podman run --rm --pull=newer -w $PWD -v $PWD:$PWD quay.io/k9withabone/podlet

It will run it on your current working directory, so if you have a docker-compose.yaml file there it'll spit out the appropriate quadlet files.

1

You're viewing a single thread.