Docker命令-restart

命令

docker restart

描述

Restart one or more containers
重启容器

用法

1
docker restart [OPTIONS] CONTAINER [CONTAINER...]

选项

1
2
Options:
--time , -t Seconds to wait for stop before killing the container,default is 10

注意

示例

1
$  docker restart my_container