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
F28341525: D1836.id.diff
Mon, May 11, 14:46
F28331081: D1836.diff
Mon, May 11, 12:58
Unknown Object (File)
Sun, May 10, 11:14
Unknown Object (File)
Sat, May 9, 03:11
Unknown Object (File)
Wed, May 6, 11:20
Unknown Object (File)
Mon, May 4, 09:08
Unknown Object (File)
Sat, May 2, 14:58
Unknown Object (File)
Sat, May 2, 09:28
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