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.
fix code