Prefer long flags in quick start example (#1029)

`--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/
This commit is contained in:
Rootul Patel 2021-11-08 04:27:47 -05:00 committed by GitHub
parent 0060cd6ee4
commit cb4e60cffd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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: 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 \ --name watchtower \
-v /var/run/docker.sock:/var/run/docker.sock \ --volume /var/run/docker.sock:/var/run/docker.sock \
containrrr/watchtower containrrr/watchtower
``` ```