mirror of https://github.com/docker/docs.git
remove -it from example, as it's not needed for redis
Adding `-it` on a "detached" (`-d`) container is needed if the container's main process expects a TTY attached to keep running. It's not needed for a redis container, so we can remove it here Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
parent
c7b5373dff
commit
2ff02c4b2e
|
@ -35,7 +35,7 @@ The following example starts a Redis container and configures it to always
|
|||
restart unless it is explicitly stopped or Docker is restarted.
|
||||
|
||||
```bash
|
||||
$ docker run -dit --restart unless-stopped redis
|
||||
$ docker run -d --restart unless-stopped redis
|
||||
```
|
||||
|
||||
### Restart policy details
|
||||
|
|
Loading…
Reference in New Issue