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