The documentation is a bit unclear
unless-stopped
: Similar toalways
, except that when the container is stopped (manually or otherwise), it isn’t restarted even after Docker daemon restarts.
This should say “it is never restarted on Docker daemon (re)start”
There is (currently) no option to return the container to its previous run state on daemon start, only…
unless-stopped
: container always remains stopped when the daemon startsalways
: container is always started when the daemon starts