paz-sh / paz

An open-source, in-house service platform with a PaaS-like workflow, built on Docker, CoreOS, Etcd and Fleet. This repository houses the documentation and installation scripts.
http://paz.sh
Other
1.08k stars 56 forks source link

paz-dnsmasq container not removed on failure #22

Closed lukebond closed 9 years ago

lukebond commented 9 years ago

If paz-dnsmasq fails to start for whatever reason, or has previously stopped (e.g. reboot), it can't be restarted later because there is no docker rm in the unit file.

Fix incoming...

tomgco commented 9 years ago

Is this the ExecStop=/usr/bin/docker rm -f paz-dnsmasq command?

lukebond commented 9 years ago

Yes, and an ExecStartPre=-... just to be on the safe side. Basically same as internal units, e.g. Orchestrator.

Have an untested fix at home.