You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
*`-watch` - runs continuously and monitors docker container events. When containers are started
45
-
or stopped, the template is regenerated.
46
-
*`-notify` - runs a command after the template is generated. Useful for restarting nginx, reloading
47
-
haproxy, etc..
48
-
*`-config file` - Use the specified config file instead of command-line options. Multiple templates can be defined and they will be executed in the order that they appear in the config file.
49
-
*`-interval <secs>` - Run the notify command on a fixed interval. Useful for service registration use cases.
50
-
*`-endpoint tcp|unix://..` - Use a different docker remote API endpoint. This can also be set w/ a `DOCKER_HOST` environment variable.
46
+
```
47
+
-config="": Use the specified config file instead of command-line options. Multiple templates can be defined and
48
+
they will be executed in the order that they appear in the config file.
49
+
-endpoint="": docker api endpoint [tcp|unix://..]. This can also be set w/ a `DOCKER_HOST` environment.
50
+
-interval=0:run notify command interval (s). Useful for service registration use cases.
51
+
-notify="": run command after template is regenerated ["restart xyz"]. Useful for restarting nginx,
52
+
reloading haproxy, etc..
53
+
-only-exposed=false: only include containers with exposed ports
54
+
-only-published=false: only include containers with published ports (implies -only-exposed)
55
+
-version=false: show version
56
+
-watch=false: run continuously and monitors docker container events. When containers are started
57
+
or stopped, the template is regenerated.
58
+
```
51
59
52
60
If no `<dest>` file is specified, the output is sent to stdout. Mainly useful for debugging.
0 commit comments