--restart=always : 开机启动,失败也会一直重启;
--restart=on-failure:10 : 表示最多重启10次

修改已经在运行的容器:

docker update --restart=always 容器名字或者容器ID