-
Notifications
You must be signed in to change notification settings - Fork 5.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
docker-compose events #2392
docker-compose events #2392
Conversation
b531c90
to
244dc60
Compare
244dc60
to
1cc24f1
Compare
1cc24f1
to
a6b303e
Compare
a6b303e
to
20b6486
Compare
Signed-off-by: Daniel Nephin <dnephin@docker.com>
20b6486
to
f843616
Compare
I've updated this PR, and included an example of using the events to create the often requested "hooks" feature in the description. |
I've noticed that I have to use |
Signed-off-by: Daniel Nephin <dnephin@docker.com>
f843616
to
d3cd038
Compare
Ok, I've added the |
Nice. Tested locally, looks great. LGTM |
@dnephin re: docs - Maybe it can go in it's own section as "events" under bash completion under the heading of "create multi-container applications" |
Fixes #1510
Adds a new command
events
for tailing the event stream for containers in the composition.The event fields match the new api fields being introduced in 1.10 (moby/moby#18888)
This gist shows an example of using these events to create event hooks in under 20 lines of bash:
https://gist.github.com/dnephin/c56b479810f863527e90
Any suggestion on where this can be included in the docs?