【问题标题】:Docker container list shows empty after reboot the linux server (rhel 8)重启 linux 服务器后 Docker 容器列表显示为空(rhel 8)
【发布时间】:2022-08-08 23:44:17
【问题描述】:

我在我的 Linux 服务器(rhel 8)中为 podman 配置了 systemd 服务。在按照这些说明重新启动 Linux 服务器(rhel 8)后,我已启用容器的自动重新启动选项。

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

容器已正常运行,没有发生任何问题,重新启动此服务器后,非 root 用户不会显示正在运行的容器列表。但是root用户,运行容器列表已经显示。

此外,检查 docker ps -a 命令,该容器已显示在非 root 用户的退出状态列表中,但在 root 用户中,相同的容器已显示在运行状态列表中。

您能否建议在重新启动服务器后向非 root 用户显示正在运行的容器列表的解决方案?

标签: linux docker systemd podman rhel8


【解决方案1】:

您能否确认 systemcl --user start container-*.service ,然后 podman ps 确认容器是否运行。?

如果你说“是”

你能确认一下podman版本吗 如果 podman 版本是 1.6 或 1.8,你应该升级到 2.0 及以上版本。?

podman ps 重启 linux 服务器后显示为空(rhel 8.2) podman 1.6 的 rhel 8.2 问题在更新到 podman 版本 4.2.0 后得到修复

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2015-12-16
    • 1970-01-01
    • 1970-01-01
    • 2020-09-16
    • 2021-11-30
    • 1970-01-01
    • 2021-06-22
    相关资源
    最近更新 更多