From 7e3eb32561ebae6229912dc89fb3d6558ded2a64 Mon Sep 17 00:00:00 2001 From: Qiang Huang Date: Tue, 19 Jul 2016 08:56:25 +0800 Subject: [PATCH] Add runc list man change Follow up https://github.com/opencontainers/runc/pull/939 Signed-off-by: Qiang Huang --- list.go | 4 ++-- man/runc-list.8.md | 12 +++++++++++- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/list.go b/list.go index e932212e..c9610312 100644 --- a/list.go +++ b/list.go @@ -45,11 +45,11 @@ Where the given root is specified via the global option "--root" EXAMPLE 1: To list containers created via the default "--root": - runc list + # runc list EXAMPLE 2: To list containers created using a non-default value for "--root": - runc --root value list`, + # runc --root value list`, Flags: []cli.Flag{ cli.StringFlag{ Name: "format, f", diff --git a/man/runc-list.8.md b/man/runc-list.8.md index 819ace89..f7374244 100644 --- a/man/runc-list.8.md +++ b/man/runc-list.8.md @@ -2,7 +2,17 @@ runc list - lists containers started by runc with the given root # SYNOPSIS - runc list [command options] [arguments...] + runc list [command options] + +# EXAMPLE +Where the given root is specified via the global option "--root" +(default: "/run/runc"). + +To list containers created via the default "--root": + # runc list + +To list containers created using a non-default value for "--root": + # runc --root value list # OPTIONS --format value, -f value select one of: table or json (default: "table")