Merge pull request #4682 from thaJeztah/24.0_backport_noraw

[24.0 backport] docs: remove "{% raw %}" / "{% endraw %}" Jekyl (liquid) leftovers
This commit is contained in:
Sebastiaan van Stijn
2023-11-28 10:26:40 +01:00
committed by GitHub
6 changed files with 2 additions and 18 deletions
+1 -3
View File
@@ -156,7 +156,7 @@ By default, the Docker command line stores its configuration files in a
directory called `.docker` within your `$HOME` directory.
Docker manages most of the files in the configuration directory
and you should not modify them. However, you *can* modify the
and you should not modify them. However, you can modify the
`config.json` file to control certain aspects of how the `docker`
command behaves.
@@ -313,7 +313,6 @@ Following is a sample `config.json` file to illustrate the format used for
various fields:
```json
{% raw %}
{
"HttpHeaders": {
"MyHeader": "MyValue"
@@ -356,7 +355,6 @@ various fields:
}
}
}
{% endraw %}
```
### Experimental features
-6
View File
@@ -570,19 +570,15 @@ for a container can be obtained via [`docker inspect`](commandline/inspect.md).
for container "my-container";
```console
{% raw %}
$ docker inspect -f "{{ .RestartCount }}" my-container
# 2
{% endraw %}
```
Or, to get the last time the container was (re)started;
```console
{% raw %}
$ docker inspect -f "{{ .State.StartedAt }}" my-container
# 2015-03-04T23:47:07.691840179Z
{% endraw %}
```
Combining `--restart` (restart policy) with the `--rm` (clean up) flag results
@@ -1646,7 +1642,6 @@ Similarly the operator can set the **HOSTNAME** (Linux) or **COMPUTERNAME** (Win
Example:
```console
{% raw %}
$ docker run --name=test -d \
--health-cmd='stat /etc/passwd || exit 1' \
--health-interval=2s \
@@ -1691,7 +1686,6 @@ $ sleep 2; docker inspect --format='{{json .State.Health}}' test
}
]
}
{% endraw %}
```
The health status is also displayed in the `docker ps` output.