ikke-t / podman-container-systemd

creates systemd files and creates containers using podman
118 stars 44 forks source link

rootless containers don't work #28

Closed ikke-t closed 3 years ago

ikke-t commented 4 years ago

rootless containers can't be started from systemd service files from under /etc/systemd/system. They need to be instead defined under users home dir. See this issue.

Change the logic so that if user is not root:

  1. create systemd file under ~/.config/systemd/user/
  2. make sure systemd is aware of such files
  3. mark them enabled at boot
ikke-t commented 3 years ago

This is under work in branch "rootless"

ikke-t commented 3 years ago

Fixed by https://github.com/ikke-t/podman-container-systemd/commit/3d03115a0df0d2e1bfae9cb854a8f0688b655733