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
Unknown Object (File)
Wed, Jul 22, 07:11
Unknown Object (File)
Tue, Jul 21, 10:53
Unknown Object (File)
Mon, Jul 20, 16:59
Unknown Object (File)
Mon, Jul 20, 15:03
Unknown Object (File)
Mon, Jul 20, 03:58
Unknown Object (File)
Tue, Jul 7, 15:26
Unknown Object (File)
Mon, Jul 6, 13:49
Unknown Object (File)
Mon, Jul 6, 10:38
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