Restart= unless-stopped env not working

The documentation is a bit unclear

unless-stopped: Similar to always, 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 starts
  • always : container is always started when the daemon starts