简体   繁体   中英

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?

Could you confirm systemcl --user start container-*.service, and then podman ps to confirm container run or not.?

If you say "yes"

Could you confirm podman version If podman version 1.6 or 1.8 you should be upgrade to 2.0 and above version.?

podman ps shows empty after reboot the linux server (rhel 8.2) rhel 8.2 issues with podman 1.6 was fix after update to podman version 4.2.0

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM