From 6ebd257245a611246bb3ce9c6712c5eb19a9efb4 Mon Sep 17 00:00:00 2001 From: zhangguanzhang Date: Sat, 8 Aug 2020 18:35:21 +0800 Subject: Add the Status field in the ps --format=json Signed-off-by: zhangguanzhang --- pkg/domain/entities/container_ps.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'pkg') diff --git a/pkg/domain/entities/container_ps.go b/pkg/domain/entities/container_ps.go index 50dd4933b..ed40a37ab 100644 --- a/pkg/domain/entities/container_ps.go +++ b/pkg/domain/entities/container_ps.go @@ -56,6 +56,8 @@ type ListContainer struct { StartedAt int64 // State of container State string + // Status is a human-readable approximation of a duration for json output + Status string } // ListContainer Namespaces contains the identifiers of the container's Linux namespaces -- cgit v1.2.3-54-g00ecf