自動起動しないといけないサービスのサービスファイルをちゃんと書け!
やれ
Podmanなど
code:sh
podman-compose systemd -a create-unit
手動で /etc/systemd/user/podman-compose@.serviceを編集して出力をコピペ
compose.yamlのあるディレクトリに行き、systemctl --user enable --now 'podman-compose@...'でsystemdのユニットファイルを生成&即時実行
code:sh
podman-compose systemd
you can use systemd commands like enable, start, stop, status, cat
all without sudo like this:
systemctl --user enable --now 'podman-compose@...'
systemctl --user status 'podman-compose@...'
journalctl --user -xeu 'podman-compose@...'
and for that to work outside a session
you might need to run the following command *once*
sudo loginctl enable-linger 'iigau'
you can use podman commands like:
podman pod ps
podman pod stats 'pod_...'
podman pod logs --tail=10 -f 'pod_...'
既に起動しているコンテナがある場合は一度stopした方が良いかも