Add support for older Docker version (pre-1-13)
Docker 1.13 and Docker CE releases support the init
option. This option is necessary in order to cleanly terminate all processes inside the container (especially to avoid corrupting the mongodb database).
Prior to Docker 1.13 (e.g. 1.12), such supports does not exist. They could be ignore and we could ask user to upgrade but there are significant machine who are still running these versions:
- CentOS 7: Docker 1.12
- Fedora up to 25: Docker 1.12
- Ubuntu 16.04 LTS: Docker 1.12
- NAS vendors:
- Synology: 1.11
- QNAP: 1.11
- etc.