重启 docker 容器

docker restart <container> [<container>...]

选项 –time :在杀死容器之前等待停止的秒数(默认值为 10)

docker restart <container> --time 10