1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

podmanのcontainerをsystemctlで自動起動させる備忘録

Last updated at Posted at 2024-11-09

(1) systemctlのunit-fileを生成

生成する先のパスが重要

podman generate systemd --name n8n-app > ~/.config/systemd/user/n8n-app.systemd.service

(2) daemonを再起動(--userが重要)

systemd --user daemon-reload

(3) systemctlから認識されているかを確認

systemctl --user list-unit-files

(4) 起動/ステータス確認/停止をやってみる

systemctl --user start container-n8n-app.service
systemctl --user status container-n8n-app.service
systemctl --user stop container-n8n-app.service

(5) 問題なければenable

systemctl --user enable container-n8n-app.service

参考: https://www.zu-min.com/archives/875

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?