diff --git a/config/formatting.md b/config/formatting.md index 2004c85f34..3e1c001ddf 100644 --- a/config/formatting.md +++ b/config/formatting.md @@ -14,6 +14,28 @@ All of these examples use the `docker inspect` command, but many other CLI commands have a `--format` flag, and many of the CLI command references include examples of customizing the output format. +>**Note** +> +> Whe using the `--format` flag, you need observe your shell environment. +> In a Posix shell, you can run the following with a single quote: +> +> {% raw %} +> ```bash +> docker inspect --format '{{join .Args " , "}}' +> ``` +> {% endraw %} +> +> Otherwise, in a Windows shell (for example, PowerShell), you need to use single quotes, but +> escape the double quotes inside the params as follows: +> +> {% raw %} +> ```bash +> docker inspect --format '{{join .Args \" , \"}}' +> ``` +> {% endraw %} +> +{:.important} + ## join `join` concatenates a list of strings to create a single string.