Closed coldbloodx closed 4 years ago
This is intentional (but only for rootless). As rootless, we need a user namespace to allow us to do some things we normally cannot (mount tmpfs/fuse filesystems, access users other than the one currently logged in). We also need to use the same user namespace for every container (to ensure that, if we want to share something with another container, that will work). On every launch, rootless Podman checks for the presence of the pause process via a pidfile. If it exists, we join its user namespace; if not, we create a fresh pause process with a fresh user namespace, and save that in a PID file.
Generally speaking, the pause process will hang around doing nothing but ensuring the namespace is alive and ready for use in the kernel. It shouldn't use much in the way of resources. If you have no containers running, you can kill it safely, and we'll just spin up another when a fresh Podman launches.
Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind bug
Description podman process remains in system and does not exit.
Steps to reproduce the issue:
run
podman ps
and after podman exit, check podman process. 1. [xianwu@rcn07 ~]$ ps -ewf |grep podman xianwu 171569 1 0 02:09 ? 00:00:00 podman xianwu 171788 171482 0 02:11 pts/0 00:00:00 grep --color=auto podman [xianwu@rcn07 ~]$ kill -9 171569 [xianwu@rcn07 ~]$ ps -ewf |grep podman xianwu 171803 171482 0 02:11 pts/0 00:00:00 grep --color=auto podman [xianwu@rcn07 ~]$ podman ps CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES [xianwu@rcn07 ~]$ ps -ewf |grep podman xianwu 171828 1 0 02:11 ? 00:00:00 podman xianwu 171846 171482 0 02:11 pts/0 00:00:00 grep --color=auto podmanDescribe the results you received: podman process does not exit.
Describe the results you expected: podman porocess should exit.
Additional information you deem important (e.g. issue happens only occasionally): [xianwu@rcn07 ~]$ cat /proc/171828/status Name: podman pause Umask: 0022 State: S (sleeping) Tgid: 171828 Ngid: 0 Pid: 171828 PPid: 1 TracerPid: 0 Uid: 33857 33857 33857 33857 Gid: 10007 10007 10007 10007 FDSize: 64 Groups: 666 10007 100001 NStgid: 171828 NSpid: 171828 NSpgid: 171827 NSsid: 171827 VmPeak: 75312 kB VmSize: 75312 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 31460 kB VmRSS: 31460 kB RssAnon: 18976 kB RssFile: 12484 kB RssShmem: 0 kB VmData: 1044 kB VmStk: 132 kB VmExe: 32396 kB VmLib: 2748 kB VmPTE: 152 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 Threads: 1 SigQ: 0/23737 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: fffffffe7ffabeff SigIgn: 0000000017803007 SigCgt: 0000000180000000 CapInh: 0000000000000000 CapPrm: 0000003fffffffff CapEff: 0000003fffffffff CapBnd: 0000003fffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Speculation_Store_Bypass: vulnerable Cpus_allowed: 3 Cpus_allowed_list: 0-1 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 2 nonvoluntary_ctxt_switches: 147 Output of
podman version
:Output of
podman info --debug
:Package info (e.g. output of
rpm -q podman
orapt list podman
):