Page MenuHomeDevCentral

Provide a what-container pipe command to add a container column
ClosedPublic

Authored by dereckson on Oct 2 2018, 20:38.
Tags
None
Referenced Files
F24099462: D1836.diff
Mon, Feb 9, 20:34
F24089557: D1836.diff
Mon, Feb 9, 12:48
F24082647: D1836.id4638.diff
Mon, Feb 9, 09:27
F24082645: D1836.id4639.diff
Mon, Feb 9, 09:27
Unknown Object (File)
Sat, Feb 7, 16:52
Unknown Object (File)
Sat, Feb 7, 13:10
Unknown Object (File)
Thu, Feb 5, 16:31
Unknown Object (File)
Thu, Feb 5, 11:49
Subscribers
None

Details

Summary

The command is intended to be used as a pipe:
ps auxw | grep bash | what-container

It parses stdin to append to the line the container name,
if it matches a pid launched in a container.

By default, pid is searched in the first two columns,
but a custom position can be given as argument:

ps auxw | grep bash | what-container -p 2

Ref T1456

Test Plan

Commands above

Diff Detail

Repository
rDP Docker Processes
Lint
Lint Not Applicable
Unit
Tests Not Applicable