[lxc-users] ps -eo lxc no longer works
Forest
forestcode at ixio.org
Wed Mar 4 21:04:33 UTC 2020
Forest wrote:
>When I use the ps command's "lxc" format specifier, for example:
>
>ps -eo pid,lxc,command
>
>The second output column is supposed to show "the name of the lxc container
>within which a task is running. If a process is not running inside a container,
>a dash ('-') will be shown." This worked fine until I upgraded from ubuntu
>19.04 to 19.10, which brought me from lxc 3.03 to 3.04. Now, that column
>always contains a dash instead of the container name, even for processes
>that are running inside a container.
On Fri, 14 Feb 2020 07:26:25 +0000, Jäkel wrote:
>IMHO this more likely caused by others than LXC, like a regression in ps.
>The top command also offer a column for this
The top command shows a - in that column, too.
>Compare the ouput of 'ps --version';
Ubuntu 19.04 and 19.10 use the same version of procps, with only a minor
(and seemingly unrelated) patch applied to the latter.
>maybe you can try to use the older ps binary on the newer ubuntu to check it out
I tried that. The older ps binary did not solve the problem, nor did the
older libprocps.so.7.
More information about the lxc-users
mailing list