Changes in the sentence structures

This commit is contained in:
Mehmood Deshmukh 2018-06-24 16:22:18 +05:30 committed by GitHub
parent 6c54043f66
commit cd21fc334e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -28,8 +28,8 @@ any of the following:
|:-----------------|:------------------------------------------------------------------------------------------------|
| `no` | Do not automatically restart the container. (the default) |
| `on-failure` | Restart the container if it exits due to an error, which manifests as a non-zero exit code. |
| `always` | Always restart the container if it stops. If it is manually stopped, it will restart only when Docker daemon restarts or the container itself is manually restarted. (see the second bullet under [restart policy details](#restart-policy-details)) |
| `unless-stopped` | Similar to `always`, except that when it is manually stopped, it remains stopped even after Docker daemon restarts. |
| `always` | Always restart the container if it stops. If it is manually stopped, it will be restarted only when Docker daemon restarts or the container itself is manually restarted. (see the second bullet under [restart policy details](#restart-policy-details)) |
| `unless-stopped` | Similar to `always`, except that when the container is manually stopped, it is not restarted even after Docker daemon restarts. |
The following example starts a Redis container and configures it to always
restart unless it is explicitly stopped or Docker is restarted.