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.
|
straightforward manner.
|
||||||
|
|
||||||
```none
|
```none
|
||||||
|
{% raw %}
|
||||||
$ docker-machine inspect --format='{{.Driver.IPAddress}}' dev
|
$ docker-machine inspect --format='{{.Driver.IPAddress}}' dev
|
||||||
192.168.5.99
|
192.168.5.99
|
||||||
|
{% endraw %}
|
||||||
```
|
```
|
||||||
|
|
||||||
**Formatting details:**
|
**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
|
While this is usable, it's not very human-readable. For this reason, there is
|
||||||
`prettyjson`:
|
`prettyjson`:
|
||||||
|
|
||||||
```
|
```none
|
||||||
|
{% raw %}
|
||||||
$ docker-machine inspect --format='{{prettyjson .Driver}}' dev-fusion
|
$ docker-machine inspect --format='{{prettyjson .Driver}}' dev-fusion
|
||||||
{
|
{
|
||||||
"Boot2DockerURL": "",
|
"Boot2DockerURL": "",
|
||||||
|
|
@ -97,4 +100,5 @@ $ docker-machine inspect --format='{{prettyjson .Driver}}' dev-fusion
|
||||||
"SwarmHost": "tcp://0.0.0.0:3376",
|
"SwarmHost": "tcp://0.0.0.0:3376",
|
||||||
"SwarmMaster": false
|
"SwarmMaster": false
|
||||||
}
|
}
|
||||||
|
{% endraw %}
|
||||||
```
|
```
|
||||||
|
|
|
||||||
|
|
@ -103,16 +103,20 @@ The following example uses a template without headers and outputs the `Name` and
|
||||||
for all running machines:
|
for all running machines:
|
||||||
|
|
||||||
```none
|
```none
|
||||||
|
{% raw %}
|
||||||
$ docker-machine ls --format "{{.Name}}: {{.DriverName}}"
|
$ docker-machine ls --format "{{.Name}}: {{.DriverName}}"
|
||||||
default: virtualbox
|
default: virtualbox
|
||||||
ec2: amazonec2
|
ec2: amazonec2
|
||||||
|
{% endraw %}
|
||||||
```
|
```
|
||||||
|
|
||||||
To list all machine names with their driver in a table format you can use:
|
To list all machine names with their driver in a table format you can use:
|
||||||
|
|
||||||
```none
|
```none
|
||||||
|
{% raw %}
|
||||||
$ docker-machine ls --format "table {{.Name}} {{.DriverName}}"
|
$ docker-machine ls --format "table {{.Name}} {{.DriverName}}"
|
||||||
NAME DRIVER
|
NAME DRIVER
|
||||||
default virtualbox
|
default virtualbox
|
||||||
ec2 amazonec2
|
ec2 amazonec2
|
||||||
|
{% endraw %}
|
||||||
```
|
```
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue