ScanSkill

docker stop

docker stop command is used to stop one or more running containers.

Syntax

$ docker stop [OPTIONS] CONTAINER [CONTAINER...]

Options

  • --time , -t →Seconds to wait for stop before killing it (Default is 10)

Example

$ docker stop my_container