Fix some Liquid warnings

This commit is contained in:
Misty Stanley-Jones 2016-11-01 09:45:00 -07:00
parent b8e2a53137
commit 20a6e1f31b
2 changed files with 9 additions and 1 deletions

View File

@ -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 %}
```

View File

@ -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 %}
```