What restart policies are you familiar with?
Answer
- always: restart the container when it's stopped (not with
docker container stop)- unless-stopped: restart the container unless it was in stopped status
- no: don't restart the container at any point (default policy)
- on-failure: restart the container when it exists due to an error (= exit code different than zero)