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

How can I use "live-restore" option with current systemd templates?

Open fitz123 opened this issue 8 years ago • 5 comments
trafficstars

Currently it's not possibly to use --live-restore docker option because puppet service template has hardcoded daemon dependency: https://github.com/garethr/garethr-docker/blob/master/templates/etc/systemd/system/docker-run.erb#L7

So any time docker daemon is restarted - it restarts all containers too. We want to avoid this behavior and be able to upgrade daemon itself and restart it with no containers affection

Is it possible to exclude "docker.service" dependency or be able to overwrite this?

Thank you and regards.

fitz123 avatar May 26 '17 17:05 fitz123

Were you able to work around this issue? I'm looking to get a live-restore option somehow as well

mendhak avatar Feb 06 '18 14:02 mendhak

I'm using custom template as a docker-run.erb

fitz123 avatar Feb 06 '18 14:02 fitz123

Hi do you mean a template to put values into /etc/docker/daemon.json? I was thinking of doing something like that and putting the live-restore in there.

mendhak avatar Feb 06 '18 15:02 mendhak

that one too, of course. But it already are configurable and you can update it whatever you want. the main struggle (and the point of this issue) is https://github.com/garethr/garethr-docker/blob/master/templates/etc/systemd/system/docker-run.erb#L7 which gives you no chance to restart docker service without getting all containers restarting by SystemD

fitz123 avatar Feb 06 '18 15:02 fitz123

Ah thanks for the update and clarification this is very useful to me!

mendhak avatar Feb 06 '18 15:02 mendhak