I have just figured out a container I have been using for a while was created without the --restart flag.
I want to add --restart always to the container. Do I have to remove the existing container and recreate it again from the image or is there an easy way to add a restart --always to an existing container?
maybe you also want unless-stopped instead of always.
Imagine you stopped your containers and rebooting your machine…after rebooting you usually do not want the containers to start again cause you explicitly stopped them.
If you want them to be started, then always. If not, then --unless-stopped.