88 shaares
(pour configurer wallabag)
chatgpt me dit:
# (English comment: Modified to use quadlets integration instead of deprecated 'podman generate systemd')
[Unit]
Description=Podman container %i
After=network-online.target
Wants=network-online.target
[Service]
Restart=always
# (English comment: Run container with systemd integration via '--systemd=always')
ExecStart=/usr/bin/podman run --rm --systemd=always --name %i your-image
ExecStop=/usr/bin/podman stop %i
KillMode=none
[Install]
WantedBy=multi-user.target
lacez ce fichier dans /etc/systemd/system/container-%i.service, puis activez-le par :
# (English comment: Enable and start the container service)
systemctl enable --now container-yourname.service
Cette méthode vous offre une intégration native avec systemd via les Quadlets.
mais je ne vois pas le rapport pour l'instant