Skip to content

Instantly share code, notes, and snippets.

@siwonpawel
Created June 22, 2023 20:24
Show Gist options
  • Save siwonpawel/7b2c75384de35a7d2e56b0757fd271e4 to your computer and use it in GitHub Desktop.
Save siwonpawel/7b2c75384de35a7d2e56b0757fd271e4 to your computer and use it in GitHub Desktop.
Short instruction on how to configure podman to autostart
# Podman autostart
sudo loginctl enable-linger $USER
podman generate systemd --new --name CONTAINER_NAME -f
mv -v FILENAME.service ~/.config/systemd/user/
systemctl --user daemon-reload
systemctl --user enable FILENAME.service
Now the service should autostart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment