docker run restart always

C++
$ docker run -d --restart unless-stopped <image>$ docker run --restart=always redis
sudo docker exec -it <container name> <command>
Source

Also in C++: