2014-04-16 18:07:55 +00:00
|
|
|
% DOCKER(1) Docker User Manuals
|
2014-07-01 02:58:04 +00:00
|
|
|
% Docker Community
|
|
|
|
% JUNE 2014
|
2014-04-16 18:07:55 +00:00
|
|
|
# NAME
|
|
|
|
docker-events - Get real time events from the server
|
|
|
|
|
2014-07-01 02:58:04 +00:00
|
|
|
# SYNOPSIS
|
|
|
|
**docker events**
|
|
|
|
[**--since**[=*SINCE*]]
|
|
|
|
[**--until**[=*UNTIL*]]
|
|
|
|
|
2014-04-16 18:07:55 +00:00
|
|
|
|
|
|
|
# DESCRIPTION
|
|
|
|
Get event information from the Docker daemon. Information can include historical
|
|
|
|
information and real-time information.
|
|
|
|
|
|
|
|
# OPTIONS
|
|
|
|
**--since**=""
|
2014-07-01 02:58:04 +00:00
|
|
|
Show all events created since timestamp
|
|
|
|
|
|
|
|
**--until**=""
|
|
|
|
Stream events until this timestamp
|
2014-04-16 18:07:55 +00:00
|
|
|
|
|
|
|
# EXAMPLES
|
|
|
|
|
|
|
|
## Listening for Docker events
|
|
|
|
|
2014-04-17 15:36:58 +00:00
|
|
|
After running docker events a container 786d698004576 is started and stopped
|
2014-06-14 07:49:51 +00:00
|
|
|
(The container name has been shortened in the output below):
|
2014-04-16 18:07:55 +00:00
|
|
|
|
|
|
|
# docker events
|
|
|
|
[2014-04-12 18:23:04 -0400 EDT] 786d69800457: (from whenry/testimage:latest) start
|
|
|
|
[2014-04-12 18:23:13 -0400 EDT] 786d69800457: (from whenry/testimage:latest) die
|
|
|
|
[2014-04-12 18:23:13 -0400 EDT] 786d69800457: (from whenry/testimage:latest) stop
|
|
|
|
|
|
|
|
## Listening for events since a given date
|
|
|
|
Again the output container IDs have been shortened for the purposes of this document:
|
|
|
|
|
|
|
|
# docker events --since '2014-04-12'
|
|
|
|
[2014-04-12 18:11:28 -0400 EDT] c655dbf640dc: (from whenry/testimage:latest) create
|
|
|
|
[2014-04-12 18:11:28 -0400 EDT] c655dbf640dc: (from whenry/testimage:latest) start
|
|
|
|
[2014-04-12 18:14:13 -0400 EDT] 786d69800457: (from whenry/testimage:latest) create
|
|
|
|
[2014-04-12 18:14:13 -0400 EDT] 786d69800457: (from whenry/testimage:latest) start
|
|
|
|
[2014-04-12 18:22:44 -0400 EDT] 786d69800457: (from whenry/testimage:latest) die
|
|
|
|
[2014-04-12 18:22:44 -0400 EDT] 786d69800457: (from whenry/testimage:latest) stop
|
|
|
|
[2014-04-12 18:23:04 -0400 EDT] 786d69800457: (from whenry/testimage:latest) start
|
|
|
|
[2014-04-12 18:23:13 -0400 EDT] 786d69800457: (from whenry/testimage:latest) die
|
|
|
|
[2014-04-12 18:23:13 -0400 EDT] 786d69800457: (from whenry/testimage:latest) stop
|
|
|
|
|
|
|
|
# HISTORY
|
|
|
|
April 2014, Originally compiled by William Henry (whenry at redhat dot com)
|
2014-07-02 00:30:25 +00:00
|
|
|
based on docker.com source material and internal work.
|
2014-07-01 02:58:04 +00:00
|
|
|
June 2014, updated by Sven Dowideit <SvenDowideit@home.org.au>
|