HomeDevCentral

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

Description

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

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

Reviewers: dereckson

Reviewed By: dereckson

Maniphest Tasks: T1456

Differential Revision: https://devcentral.nasqueron.org/D1836

Details

Provenance
derecksonAuthored on Oct 2 2018, 20:29
derecksonPushed on Oct 2 2018, 20:42
Reviewer
dereckson
Differential Revision
D1836: Provide a what-container pipe command to add a container column
Parents
rDP987d003b51c7: Prefer container name to linked name
Branches
Unknown
Tags
Unknown
Tasks
T1456: Create a tool to offer a ps or top view per containers