containers / podlet

Generate Podman Quadlet files from a Podman command, compose file, or existing object
https://crates.io/crates/podlet
Mozilla Public License 2.0
322 stars 10 forks source link

Unit directory option flag #13

Closed k9withabone closed 1 year ago

k9withabone commented 1 year ago

Closes #12, adds an option flag for putting the generated file in the appropriate directory for quadlet. Also prepares for a v0.1.1 release.

Nitrousoxide commented 1 year ago

How does podlet decide to put it in the rootful versus non-root unit directory? Is it the use of "podlet -u podman run sudo podman run (rest of run command)" for the rootful directory and the lack of a sudo for the non-root version? Or does it need another flag passed to choose which directory to go? I don't see anything in the documentation indicating how you send it which way

k9withabone commented 1 year ago

It depends on the user running the podlet process since root is required for writing to root directories. So sudo podlet -u podman run image will place the file in /etc/containers/systemd, and podlet -u podman run image (assuming non-root user) will place the file in ~/.config/containers/systemd.