@blog @howto @linux
cd my-podman-compose-project
This allows user services to be started like this:
systemctl --user start 'podman-compose@my-podman-compose-project'
NOTE: If podman-compose isn't installed globally, you may need to do so in order to run this command as root.
sudo podman-compose systemd -a create-unit
podman pod create --name pod_my_pod
podman-compose --in-pod pod_my_pod up --no-start
podman pod start pod_my_pod
This allows the project to be started using the podman-compose systemd service created at the beginning of this guide.
podman-compose systemd -a register
Now user-owned services can be started with systemctl, etc.
systemctl --user start 'podman-compose@my-podman-compose-project'