>> Why don't we use a restart policy of always by the way? Is it because we manually send containers signals for a clean shutdown?
> It means containers can be stopped manually if necessary and Docker won't try to restart them.
Isn't that what always does? From, https://docs.docker.com/config/containers/start-containers-automatically/:
always: Always restart the container if it stops. If it is manually stopped, it is restarted only when Docker daemon restarts or the container itself is manually restarted. (See the second bullet listed in restart policy details)
>> Why don't we use a restart policy of always by the way? Is it because we manually send containers signals for a clean shutdown?
> It means containers can be stopped manually if necessary and Docker won't try to restart them.
Isn't that what always does? From, https:/ /docs.docker. com/config/ containers/ start-container s-automatically /:
always: Always restart the container if it stops. If it is manually stopped, it is restarted only when Docker daemon restarts or the container itself is manually restarted. (See the second bullet listed in restart policy details)