如果容器还没启动

    1. docker run命令加上参数 --restart=always

    如果已经启动了

    $ docker update --restart=always <CONTAINER ID>