Skip to content

Commit c9caad2

Browse files
committed
fix an incorrect docker-gen parameter, other minor fixes to example
- Needed to fix the incorrect --only-published to -only-published - Think it's more likely to work for more people if change -only-published to -only-exposed - added :ro to the sock, to match your other examples in your other project pages.
1 parent 5066f5c commit c9caad2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,9 @@ Fetch the template and start the docker-gen container with the shared volume:
6767
$ mkdir -p /tmp/templates && cd /tmp/templates
6868
$ curl -o nginx.tmpl https://raw.githubusercontent.com/jwilder/docker-gen/master/templates/nginx.tmpl
6969
$ docker run -d --name nginx-gen --volumes-from nginx \
70-
-v /var/run/docker.sock:/tmp/docker.sock \
70+
-v /var/run/docker.sock:/tmp/docker.sock:ro \
7171
-v /tmp/templates:/etc/docker-gen/templates \
72-
-t jwilder/docker-gen:0.3.4 -notify-sighup nginx -watch --only-published /etc/docker-gen/templates/nginx.tmpl /etc/nginx/conf.d/default.conf
72+
-t jwilder/docker-gen -notify-sighup nginx -watch -only-exposed /etc/docker-gen/templates/nginx.tmpl /etc/nginx/conf.d/default.conf
7373
```
7474

7575
===

0 commit comments

Comments
 (0)