Assuming the Docker daemon is restarted automatically by whatever init.d or systemd like process when the OS is restarted, what is the preferred way to restart one or more Docker containers? For example I might have a number of web servers behind a reverse proxy or a database server.
if you start the daemon with docker -d -r
, it will restart all containers that were running prior the daemon stopped.
This will become the default behavior in the next release.