docker restart

描述

重启容器

用法

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

选项

--time , -t:重启容器之前等待秒数。默认值10秒

实例

$ docker restart my_container