5.14 Set the 'on-failure' container restart policy to 5 - RestartPolicyName=always

Information

http://docs.docker.com/ reference/commandline/cli/#restart-policies

Solution

If a container is desired to be restarted of its own, then start the container as below-$> docker run <Run arguments> --restart=on-failure-5 <Container Image Name or ID>
<Command>For example,$> docker run -d --restart=on-failure-5 nginx

Impact-The container would attempt to restart only for 5 times.

Default Value-By default, containers are not configured with restart policies. Hence, containers do not
attempt to restart of their own.

See Also

https://workbench.cisecurity.org/files/516