Restart docker container with a new image when it dies

Viewed 190

I have a docker container running an image that has a bug which occasionally causes the container to crash. I have a new image that fixes that bug. I'd like to keep the old image running for as long as possible since as long as it's running, it's in a good state. The container is currently running with restart=always.

Is there a way to have the container start with the new, bugfixed image only after it dies?

0 Answers
Related