From a7124389ed33f8088a4ebdc5b690342c66db94b7 Mon Sep 17 00:00:00 2001 From: Kenfe-Mickael Laventure Date: Wed, 19 Oct 2016 15:09:42 -0700 Subject: [PATCH] Add Networks placeholder to ps --format Passing {{.Networks}} to the format parameter will prompt ps to display all the networks the container is connected to. Signed-off-by: Kenfe-Mickael Laventure --- docs/reference/commandline/ps.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/reference/commandline/ps.md b/docs/reference/commandline/ps.md index fb5c919a87..c48b1ff1f9 100644 --- a/docs/reference/commandline/ps.md +++ b/docs/reference/commandline/ps.md @@ -347,6 +347,7 @@ Placeholder | Description `.Labels` | All labels assigned to the container. `.Label` | Value of a specific label for this container. For example `'{% raw %}{{.Label "com.docker.swarm.cpu"}}{% endraw %}'` `.Mounts` | Names of the volumes mounted in this container. +`.Networks` | Names of the networks attached to this container. When using the `--format` option, the `ps` command will either output the data exactly as the template declares or, when using the `table` directive, includes