Skip to content

Commit

Permalink
Prefer long flags in quick start example (#1029)
Browse files Browse the repository at this point in the history
`--detach` is clearer (to a new Docker user) than `-d`. Similarly `--volume` is clearer than `-v`.

Motivation: https://changelog.com/posts/use-long-flags-when-scripting
Referred to: https://docs.docker.com/engine/reference/commandline/run/
  • Loading branch information
rootulp committed Nov 8, 2021
1 parent 0060cd6 commit cb4e60c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Expand Up @@ -25,9 +25,9 @@ With watchtower you can update the running version of your containerized app sim
Watchtower will pull down your new image, gracefully shut down your existing container and restart it with the same options that were used when it was deployed initially. Run the watchtower container with the following command:

```
$ docker run -d \
$ docker run --detach \
--name watchtower \
-v /var/run/docker.sock:/var/run/docker.sock \
--volume /var/run/docker.sock:/var/run/docker.sock \
containrrr/watchtower
```

Expand Down

0 comments on commit cb4e60c

Please sign in to comment.