On Thursday, 5 July 2018 5:57:43 PM AEST Laurent Bigonville wrote: > Since the last upload, docker.io Recommends the needrestart package, > that means that the package is installed almost everywhere.
This is how I intended it to be.
> But needrestart changes the behaviour of the upgrade by interractively
> asking to restart the daemons after the upgrade.
>
> Isn't that a bit too agressive? Shouldn't needrestart be downgraded to a
> Suggests?
No, I'd rather keep it as-is...
Docker is a very ugly package in regards to restart on upgrade.
There is no elegant solution to this and it seems that the best of all
options is to prompt user about daemon restart on upgrade.
Without prompt it is either to kill all running containers on upgrade (when
daemon is restarted) or lose control of Docker due to API mismatch between
CLI and the daemon (when daemon is not restarted). See #792327, #786724.
IMHO using "needrestart" is a best way to prompt for daemon restart on Docker
upgrade so I very much meant to put "needrestart" to Recommends.
It is unfortunate if there are any side effects but perhaps they can be
addressed in "needrestart"?
--
Best wishes,
Dmitry Smirnov.
---
However beautiful the strategy, you should occasionally look at the
results.
-- Winston Churchill
signature.asc
Description: This is a digitally signed message part.

