-
Hi! I am now able to start a rootless podman container with systemd on the The following works in GitHub actions: podman run --name sys-test --rm -d fauust/docker-systemd:debian-10
podman exec -it sys-test bash -c "systemctl status systemd-journald" And But when I create the container in a molecule context You can see the full logs of both inspect commands here https://github.com/fauust/ansible-role-mariadb/runs/2797968500?check_suite_focus=true. My guess so far is that there is something on the Any help would be really appreciated! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Take a look at https://github.com/gotmax23/ansible-role-update/blob/5a22e1ff20aa34834a1b2b7c5a7232b445f79404/.github/workflows/molecule.yml#L133. The reason you faced this issue on Github Actions and not your local machine is because Github Actions does not start a Systemd user instance by itself, which is required for rootless Podman*. On most Linux distros, a Systemd user service starts automatically when you log in, but this is not the case on Github Actions runners. *: I believe there is some way to remove dependence on Systemd. |
Beta Was this translation helpful? Give feedback.
Take a look at https://github.com/gotmax23/ansible-role-update/blob/5a22e1ff20aa34834a1b2b7c5a7232b445f79404/.github/workflows/molecule.yml#L133. The reason you faced this issue on Github Actions and not your local machine is because Github Actions does not start a Systemd user instance by itself, which is required for rootless Podman*. On most Linux distros, a Systemd user service starts automatically when you log in, but this is not the case on Github Actions runners.
*: I believe there is some way to remove dependence on Systemd.