Merge pull request #13373 from rpatterson/patch-1

fix(yaml): Avoid bool type error
This commit is contained in:
Sebastiaan van Stijn 2021-08-27 16:02:53 +02:00 committed by GitHub
commit fb307b4d01
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 4 deletions

View File

@ -1538,16 +1538,16 @@ volumes_from:
`no` is the default restart policy, and it doesn't restart a container under any circumstance. When `always` is specified, the container always restarts. The `on-failure` policy restarts a container if the exit code indicates an on-failure error. `no` is the default restart policy, and it doesn't restart a container under any circumstance. When `always` is specified, the container always restarts. The `on-failure` policy restarts a container if the exit code indicates an on-failure error.
```yaml ```yaml
restart: no restart: "no"
``` ```
```yaml ```yaml
restart: always restart: "always"
``` ```
```yaml ```yaml
restart: on-failure restart: "on-failure"
``` ```
```yaml ```yaml
restart: unless-stopped restart: "unless-stopped"
``` ```
{: id="cpu-and-other-resources"} {: id="cpu-and-other-resources"}