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
F24794257: D1836.id4638.diff
Wed, Mar 11, 01:29
F24792244: D1836.id4639.diff
Tue, Mar 10, 23:20
F24789989: D1836.id4638.diff
Tue, Mar 10, 20:17
F24789777: D1836.id4638.diff
Tue, Mar 10, 20:06
F24789236: D1836.id4639.diff
Tue, Mar 10, 19:13
F24789234: D1836.id4639.diff
Tue, Mar 10, 19:13
F24789068: D1836.id4639.diff
Tue, Mar 10, 19:03
Unknown Object (File)
Mon, Mar 9, 10:01
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
No Lint Coverage
Unit
No Test Coverage
Branch
what-container
Build Status
Buildable 2832
Build 3080: arc lint + arc unit