How to bootstrap systemd when using a podman-in-podman setup? #622

Open
opened 2024-11-09 07:44:01 +00:00 by forestscience · 0 comments
forestscience commented 2024-11-09 07:44:01 +00:00 (Migrated from gitea.com)

I am running the gitea runner directly (so, not through a container). The tasks are running on container, and many of these tasks are to build podman containers or to run them using podman-compose. The problem I am facing is: For podman to be able to assess the health of the containers, it needs systemd running. I have thought in extending my container image to execute CMD [ "/sbin/init" ], but this would be overwritten by the commands issued when the container gets created (I see in the create stage the entrypoint and the cmd are fixed, one of them to a sleep).

How can this be worked out?

I am running the gitea runner directly (so, not through a container). The tasks are running on container, and many of these tasks are to build podman containers or to run them using podman-compose. The problem I am facing is: For podman to be able to assess the health of the containers, it needs systemd running. I have thought in extending my container image to execute ```CMD [ "/sbin/init" ]```, but this would be overwritten by the commands issued when the container gets created (I see in the create stage the entrypoint and the cmd are fixed, one of them to a sleep). How can this be worked out?
Sign in to join this conversation.
No description provided.