'Docker container list shows empty after reboot the linux server (rhel 8)

I have configured podman with systemd service in my Linux server(rhel 8). I have enabled the automatic restart option to the container after rebooting the Linux server(rhel 8) followed these instructions.

https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/8/html/building_running_and_managing_containers/assembly_porting-containers-to-systemd-using-podman_building-running-and-managing-containers

The container has run properly no issues occurred, after rebooting this server, the running container list does not show for the non-root user. But the root user, running container list has shown.

Also, checked the docker ps -a command, the container has shown in an exited state list for non-root users but in the root user same container has shown in the running state list.

Could you please suggest a solution for showing the running container list to non-root users after rebooting the server?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source