此内容还未提供中文版,以下为英文版

docker restart

预计阅读时间: 1 分钟

Description

Restart one or more containers

Usage

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

Options

Name, shorthand Default Description
--time, -t 10 Seconds to wait for stop before killing the container

Parent command

Command Description
docker The base command for the Docker CLI.

Examples

$ docker restart my_container