mirror of https://github.com/docker/docs.git
Fix some Liquid warnings
This commit is contained in:
parent
b8e2a53137
commit
20a6e1f31b
|
@ -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 %}
|
||||
```
|
||||
|
|
|
@ -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 %}
|
||||
```
|
||||
|
|
Loading…
Reference in New Issue