From 20a6e1f31bf683057cae5bb624682ada0ab31124 Mon Sep 17 00:00:00 2001 From: Misty Stanley-Jones Date: Tue, 1 Nov 2016 09:45:00 -0700 Subject: [PATCH] Fix some Liquid warnings --- machine/reference/inspect.md | 6 +++++- machine/reference/ls.md | 4 ++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/machine/reference/inspect.md b/machine/reference/inspect.md index cda92193bf..df1f7ec313 100644 --- a/machine/reference/inspect.md +++ b/machine/reference/inspect.md @@ -61,8 +61,10 @@ For the most part, you can pick out any field from the JSON in a fairly straightforward manner. ```none +{% raw %} $ docker-machine inspect --format='{{.Driver.IPAddress}}' dev 192.168.5.99 +{% endraw %} ``` **Formatting details:** @@ -78,7 +80,8 @@ $ docker-machine inspect --format='{{json .Driver}}' dev-fusion While this is usable, it's not very human-readable. For this reason, there is `prettyjson`: -``` +```none +{% raw %} $ docker-machine inspect --format='{{prettyjson .Driver}}' dev-fusion { "Boot2DockerURL": "", @@ -97,4 +100,5 @@ $ docker-machine inspect --format='{{prettyjson .Driver}}' dev-fusion "SwarmHost": "tcp://0.0.0.0:3376", "SwarmMaster": false } +{% endraw %} ``` diff --git a/machine/reference/ls.md b/machine/reference/ls.md index d262ab21c4..64b3fb779c 100644 --- a/machine/reference/ls.md +++ b/machine/reference/ls.md @@ -103,16 +103,20 @@ The following example uses a template without headers and outputs the `Name` and for all running machines: ```none +{% raw %} $ docker-machine ls --format "{{.Name}}: {{.DriverName}}" default: virtualbox ec2: amazonec2 +{% endraw %} ``` To list all machine names with their driver in a table format you can use: ```none +{% raw %} $ docker-machine ls --format "table {{.Name}} {{.DriverName}}" NAME DRIVER default virtualbox ec2 amazonec2 +{% endraw %} ```