keep docker exec running after restart code example Example: docker run restart always $ docker run --restart=always redis