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 

更新 当我从我以无根用户登录的服务器注销时出现问题!

4

1 回答 1

0

该问题已通过运行解决: loginctl enable-linger $user 如https://www.reddit.com/r/podman/comments/h00nfi/rootless_systemd_restarting_containers_when_i_log/中所述

于 2022-03-03T11:35:08.460 回答