I just installed AlmaLinux 9 (a Red Hat 9 clone), and setup containers with podman which is the new standard for RH9. Following some instructions online, I succesfully downloaded and ran a container as follows:
docker run -d \
--name homeassistant \
--privileged \
--restart=unless-stopped \
-e TZ=MY_TIME_ZONE \
-v /PATH_TO_YOUR_CONFIG:/config \
--network=host \
ghcr.io/home-assistant/home-assistant:stable
I can confirm it's running, so now I want to setup a systemd service file to start the 'homeassistant' container on bootup. I tried to locate the container image file but I can't! I checked the locations listed in /etc/containers/storage.conf and it lists
runroot = "/run/containers/storage"
graphroot = "/var/lib/containers/storage"
But neither of these hold the container I'm running (in fact /var/lib/containers doesn't even contain a storage subdirectory). So where is the container that my docker command downloaded?
Update: I issued the command above as a temporary user, and would like to move the container from the temporary user (hass) to root user. I thought I would move the file. (But I'm happy to delete and redownload too.) As a newbie I would like to know where this container file/image/dir is located.
My goal is to create a systemd file as shown here and I think running it as root will make life easier (at least while I learn). So I need to move the container image to a different user.
I can't figure out how to list installed containers, move them (to new user), delete them, etc. The 'podmas ps -a' lists the one running container, but only high level info.