podman 无法刷新容器

发布于 2025-01-10 23:55:10 字数 1438 浏览 2 评论 0原文

最近对我的 rehel 8 进行了 podman 3.4.2 更新后,我的 pod 中的容器(包括 pod 本身)在近 2 小时后退出。

我的操作系统:

$hostnamectl
   Static hostname: DELL
         Icon name: computer-server
           Chassis: server
        Machine ID: 1d0417c6b545caa9f12c94566
           Boot ID: 24f34ee54545w71c01c55c
  Operating System: Red Hat Enterprise Linux 8.5 (Ootpa)
       CPE OS Name: cpe:/o:redhat:enterprise_linux:8::baseos
            Kernel: Linux 4.18.0-348.12.2.el8_5.x86_64
      Architecture: x86-64

ERRO[0000] Error refreshing container 0beda9a50c18fbc193ec2249bdd76afbe07171df35ace5dd9d47c929ebec682d: error acquiring lock 1 for container 0beda9a50c18fbc193ec2249bdd76afbe07171df35ace5dd9d47c929ebec682d: file exists 
ERRO[0000] Error refreshing container 48329370f65d11178e715c2a065d8ca8883bcfc7961460be3e10a5bf02eb5292: error acquiring lock 3 for container 48329370f65d11178e715c2a065d8ca8883bcfc7961460be3e10a5bf02eb5292: file exists 
ERRO[0000] Error refreshing container fee25dccc31d0fd771a3cc7afcee857c0c0f33af1f7166287a4d8108b7a7605f: error acquiring lock 2 for container fee25dccc31d0fd771a3cc7afcee857c0c0f33af1f7166287a4d8108b7a7605f: file exists 
ERRO[0000] Error refreshing pod 094bfe200b1c9afd9f297facec49f0da40f73e9eb049c339827b2fee10686388: error retrieving lock 0 for pod 094bfe200b1c9afd9f297facec49f0da40f73e9eb049c339827b2fee10686388: file exists 

更新 当我从使用 rootless 用户登录的服务器注销时,就会出现问题!

After a recent update on my rehel 8 with podman 3.4.2 on it my containers in a pod including the pod itself are exiting after almost 2 hours.

My OS:

$hostnamectl
   Static hostname: DELL
         Icon name: computer-server
           Chassis: server
        Machine ID: 1d0417c6b545caa9f12c94566
           Boot ID: 24f34ee54545w71c01c55c
  Operating System: Red Hat Enterprise Linux 8.5 (Ootpa)
       CPE OS Name: cpe:/o:redhat:enterprise_linux:8::baseos
            Kernel: Linux 4.18.0-348.12.2.el8_5.x86_64
      Architecture: x86-64

ERRO[0000] Error refreshing container 0beda9a50c18fbc193ec2249bdd76afbe07171df35ace5dd9d47c929ebec682d: error acquiring lock 1 for container 0beda9a50c18fbc193ec2249bdd76afbe07171df35ace5dd9d47c929ebec682d: file exists 
ERRO[0000] Error refreshing container 48329370f65d11178e715c2a065d8ca8883bcfc7961460be3e10a5bf02eb5292: error acquiring lock 3 for container 48329370f65d11178e715c2a065d8ca8883bcfc7961460be3e10a5bf02eb5292: file exists 
ERRO[0000] Error refreshing container fee25dccc31d0fd771a3cc7afcee857c0c0f33af1f7166287a4d8108b7a7605f: error acquiring lock 2 for container fee25dccc31d0fd771a3cc7afcee857c0c0f33af1f7166287a4d8108b7a7605f: file exists 
ERRO[0000] Error refreshing pod 094bfe200b1c9afd9f297facec49f0da40f73e9eb049c339827b2fee10686388: error retrieving lock 0 for pod 094bfe200b1c9afd9f297facec49f0da40f73e9eb049c339827b2fee10686388: file exists 

UPDATE
The problem occures when I log out from the server on which I am loged in with the rootless user!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

三五鸿雁 2025-01-17 23:55:10

The problem has benn solved by running : loginctl enable-linger $user
as described in https://www.reddit.com/r/podman/comments/h00nfi/rootless_systemd_restarting_containers_when_i_log/

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文