I’m new to containers, and somehow decided upon Podman as my CNI — partly because it supported rootless containers. To help me learn more about containers I decided to deploy WordPress for this blog using containerized images. This is running rootless, being managed by Podman, and using quadlets for configuration. I used CoPilot for guidance on setting up the environment. It may not be the way you do things, but it works well for me. Anyway, here goes.
Perform the initial system configuration
Create the user account
rootless Podman runs in the context of a user account. Therefore, I create unique users for each container, which isolates not only the userspace but also the file locations. Once the user is created you can also assign a password. Finally, you need to enable lingering so the container continues to run even if the user session isn’t active.
sudo useradd -c "Homelab WordPress Container Account" -m homelabusersudo passwd homelabusersudo loginctl enable-linger homelabuser