Add the `--root` flag into the Usage section

This commit is contained in:
Haiyan Meng 2020-11-17 18:44:35 -08:00
parent 14b9e286f0
commit 0010dafe6d
1 changed files with 3 additions and 1 deletions

View File

@ -48,6 +48,7 @@ docker run -d \
registry/git-sync:tag \
--repo=https://github.com/kubernetes/git-sync \
--branch=master \
--root=/tmp/git/root \
--period=30s
# run an nginx container to serve the content
@ -70,10 +71,11 @@ A webhook is configured using a set of CLI flags. At its most basic only `webhoo
```
docker run -d \
-v /tmp/git-data:/git \
-v /tmp/git-data:/tmp/git \
registry/git-sync:tag \
--repo=https://github.com/kubernetes/git-sync \
--branch=master \
--root=/tmp/git/root \
--period=30s \
--webhook-url="http://localhost:9090/-/reload"
```