mirror of
https://github.com/docker/cli.git
synced 2025-08-27 13:42:00 +03:00
This replaces the use of bash where suitable, to allow easier copy/pasting of shell examples without copying the prompt or process output. Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
24 lines
425 B
Markdown
24 lines
425 B
Markdown
---
|
|
title: "restart"
|
|
description: "The restart command description and usage"
|
|
keywords: "restart, container, Docker"
|
|
---
|
|
|
|
# restart
|
|
|
|
```markdown
|
|
Usage: docker restart [OPTIONS] CONTAINER [CONTAINER...]
|
|
|
|
Restart one or more containers
|
|
|
|
Options:
|
|
--help Print usage
|
|
-t, --time int Seconds to wait for stop before killing the container (default 10)
|
|
```
|
|
|
|
## Examples
|
|
|
|
```console
|
|
$ docker restart my_container
|
|
```
|