Skip to content

Commit a386cdc

Browse files
committed
docs(containers): add --name to redis container in restart example
Fixes a bug where a subsequent `docker update` command fails because the container was originally run with a random generated name instead of 'redis'.
1 parent 8fe4898 commit a386cdc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

content/manuals/engine/containers/start-containers-automatically.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ The following command starts a Redis container and configures it to always
3737
restart, unless the container is explicitly stopped, or the daemon restarts.
3838

3939
```console
40-
$ docker run -d --restart unless-stopped redis
40+
$ docker run -d --name redis --restart unless-stopped redis
4141
```
4242

4343
The following command changes the restart policy for an already running

0 commit comments

Comments
 (0)