docker restart

Estimated reading time: 1 minute

Edge only: This is the CLI reference for Docker CE Edge versions. Some of these options may not be available to Docker CE stable or Docker EE. You can view the stable version of this CLI reference or learn about Docker CE Edge.

Description

Restart one or more containers

Usage

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

Options

Name, shorthandDefaultDescription
--time , -t10Seconds to wait for stop before killing the container

Parent command

CommandDescription
dockerThe base command for the Docker CLI.

Examples

$ docker restart my_container