Skip to content

Instantly share code, notes, and snippets.

Last active December 6, 2022 20:39
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?

Podman Compose with OpenSuSE MicroOS - Container Autostart on System-Boot

It is really easy to configure a user-space systemd autostart for Containers on OpenSuSE MicroOS with Podman-Compose.

When your Podman Container YourContainerService is running, then generate the systemd user unit:

podman generate systemd --new YourContainerService > ~/.config/systemd/user/YourContainer.service

Then enabe the systemd user unit for autostart:

systemctl --user daemon-reload
systemctl --user start YourContainer.service

If required, enable the systemd autostart:

systemctl --user enable YourContainer.service

If you are running more then one Container over Podman Compose, please add all the container service units, over the Container Name.

Easy. Thats it!


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment