docker run -tid -name container id -p port number -restart-always -v mount
Flag Description
no automatic restart of container: (default value)
On-failure The container exits when an error occurs (the container exit status is not 0) Restart the container
unless-stopped Restart the container when it has stopped or Docker has stopped/restarted
Always Restart the container only when the container has been stopped or Docker has been stopped/restarted