Generic script to install a docker composition program as a daemon with complete boot/init scripts.
Compatible only with Linux for now (sysvinit or systemd init systems).
Dependencies: python
, wget
(for docker), pip
(for docker-compose)
Just copy install.py
somewhere in your docker-compose project and run it as root or with sudo
.
It will install Docker and docker-compose automatically only if they are not installed yet.
usage: install.py [-h] [--uninstall] [--systemd] [composition_file]
Install this docker composition program as a daemon with boot init (sysvinit
by default).
positional arguments:
composition_file the path of the YAML composition file to use (optional)
optional arguments:
-h, --help show this help message and exit
--uninstall uninstall the daemon
--systemd use systemd
Needed for MacOS and Windows versions
The MIT License (MIT)
Copyright (c) 2016 Guillaume Pellerin @yomguy