步骤:

1.ssh使用putty软件登陆

2.sudo -i 切换root用户

3.使用docker ps命令,查看容器id

4.使用命令:docker update --restart=always 容器id