diff options
Diffstat (limited to '')
-rw-r--r-- | share/bash-completion/container | 2 | ||||
-rw-r--r-- | share/man/container-list.1.txt | 14 |
2 files changed, 14 insertions, 2 deletions
diff --git a/share/bash-completion/container b/share/bash-completion/container index 3b0e033..abdd89a 100644 --- a/share/bash-completion/container +++ b/share/bash-completion/container @@ -139,7 +139,7 @@ _container() ;; -f|--format) - opts="cli csv json shell" + opts="cli csv json nwdiag shell" COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) ) return 0 ;; diff --git a/share/man/container-list.1.txt b/share/man/container-list.1.txt index 488b718..f19d2ef 100644 --- a/share/man/container-list.1.txt +++ b/share/man/container-list.1.txt @@ -50,11 +50,17 @@ The following container options are available, defaults to *--started --stopped* Specify custom CSV separator, defaults to ','. *-f, --format='FORMAT'*:: - Use format to list container. Currently available formats are 'cli' (default), 'csv', 'json', or 'shell'. + Use format to list container. Currently available formats are 'cli' (default), 'csv', 'json', 'nwdiag', or 'shell'. *-h, --host='HOSTNAME'*:: List only container that are enabled for automatic start on the specified hostname. Defaults to list containers of the local system only. Using 'all' shows all container regardless of any automatic start configuration. +*--nwdiag-color='COLOR'*:: + Specify custom nwdiag color for the host box, defaults to '#3465a4'. + +*--nwdiag-label='LABEL'*:: + Specify custom nwdiag label for the diagram, defaults to empty. + *-o, --other*:: List only container that are not enable for automatic start on the current system. @@ -78,6 +84,12 @@ EXAMPLES *Create a JSON export of all started and stopped containers:*:: sudo container list -f json +*Create a nwdiag export of all started and stopped containers:*:: + sudo container list -f nwdiag + +*Create a SVG image via nwdiag of all started and stopped containers:*:: + sudo container list -f nwdiag | nwdiag -T svg -o cnt-list.svg - + *Create a shell export of all started and stopped containers:*:: sudo container list -f shell |