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
F11780198: D1836.id4638.diff
Sun, Sep 21, 13:22
Unknown Object (File)
Sat, Sep 13, 19:33
Unknown Object (File)
Fri, Sep 12, 14:24
Unknown Object (File)
Thu, Sep 11, 21:20
Unknown Object (File)
Thu, Sep 11, 11:15
Unknown Object (File)
Wed, Sep 10, 16:31
Unknown Object (File)
Wed, Sep 10, 07:34
Unknown Object (File)
Sat, Sep 6, 18:16
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