Wrong order of docker compose restart section (#3093)

This commit is contained in:
John Yani 2017-04-29 00:46:11 +03:00 committed by Joao Fernandes
parent a7a6302c00
commit b07f615784
1 changed files with 5 additions and 5 deletions

View File

@ -1184,6 +1184,11 @@ volumes:
target: /opt/app/static
```
> **Note:** The long syntax is new in v3.2
See [Docker Volumes](/engine/userguide/dockervolumes.md) and
[Volume Plugins](/engine/extend/plugins_volume.md) for more information.
### restart
`no` is the default restart policy, and it will not 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.
@ -1192,11 +1197,6 @@ volumes:
- restart: always
- restart: on-failure
> **Note:** The long syntax is new in v3.2
See [Docker Volumes](/engine/userguide/dockervolumes.md) and
[Volume Plugins](/engine/extend/plugins_volume.md) for more information.
### domainname, hostname, ipc, mac\_address, privileged, read\_only, shm\_size, stdin\_open, tty, user, working\_dir
Each of these is a single value, analogous to its