There are several restart policies in Docker. These are used to restart the containers in case that they crash or even after a reboot.
To run a new container with these options use:
docker run -d --restart unless-stopped {{ container_image }}
If you have an already running container - to change the restart policy use:
docker update --restart unless-stopped {{ container_id }}
Next, if you run a docker inspect and look up for RestartPolicy, it should be listed under Name field. To quickly get it:
$ docker inspect {{ container_id }} | grep -A2 RestartPolicy
"RestartPolicy": {
"Name": "unless-stopped",
"MaximumRetryCount": 0