docker mysql restart on-failure code example Example: docker run restart on boot $ docker run -d --restart unless-stopped <image>