docker-formula icon indicating copy to clipboard operation
docker-formula copied to clipboard

Systemd : Requires/After ?

Open Poil opened this issue 6 years ago • 4 comments

Hi,

I'm asking myself to add the possiblity for orchestring the systemd-docker-unit. By example I would like to start the Consul container before starting the Vault and Dnsmasq containers

What do you think about this feature ?

Poil avatar Nov 08 '18 09:11 Poil

Kinda related to https://github.com/saltstack-formulas/docker-formula/issues/120 - it would be useful to have this feature for separate projects - assuming you are talking about docker composing.

noelmcloughlin avatar Dec 06 '18 13:12 noelmcloughlin

I'm not talking about docker composing, Systemd have this possibility natively, so if using only systemd and service file to start docker we are able to orchestrate the run of the containers

Poil avatar Jan 02 '19 14:01 Poil

Yes I understand the suggestion now. You want to manipulate /usr/lib/systemd/systemd/docker.service to add Before or Wants clauses based on pillars.

noelmcloughlin avatar Feb 21 '19 13:02 noelmcloughlin

yes :)

Poil avatar Mar 27 '19 13:03 Poil