topgrade icon indicating copy to clipboard operation
topgrade copied to clipboard

Restart containers when upgraded

Open T00rk opened this issue 2 years ago • 3 comments

I wanted to know if there is already a config option to restart containers once they are upgraded.

I want to suggest some general feature

There could be a configuration option to automatically restart containers when they are upgraded.

[containers]
restart=false

T00rk avatar Feb 08 '23 14:02 T00rk

would like to see this as well. simply updating containers is useless without restarting them so the new images are used.

rursache avatar Jul 21 '23 12:07 rursache

Would like to give me a demo of how to do this?

Per How to upgrade docker container after its image changed, update of an image won't be automatically applied to the existing containers

SteveLauC avatar Jul 22 '23 01:07 SteveLauC

it should work just as watchtower does it

rursache avatar Jul 22 '23 01:07 rursache