docker-events(1)


NAME

   docker-events - Get real time events from the server

SYNOPSIS

   docker events [--help] [-f|--filter[=[]]] [--since[=SINCE]]
   [--until[=UNTIL]]

DESCRIPTION

   Get event information from the Docker daemon. Information can include
   historical information and real-time information.

   Docker containers will report the following events:

          attach, commit, copy, create, destroy, detach, die, exec_create, exec_detach, exec_start, export, kill, oom, pause, rename, resize, restart, start, stop, top, unpause, update

   Docker images report the following events:

          delete, import, load, pull, push, save, tag, untag

   Docker volumes report the following events:

          create, mount, unmount, destroy

   Docker networks report the following events:

          create, connect, disconnect, destroy

OPTIONS

   --help
     Print usage statement

   -f, --filter=[]
      Provide filter values (i.e., 'event=stop')

   --since=""
      Show all events created since timestamp

   --until=""
      Stream events until this timestamp

   The --since and --until parameters can be Unix timestamps, date
   formatted timestamps, or Go duration strings (e.g. 10m, 1h30m) computed
   relative to the client machine's time. If you do not provide the
   --since option, the command returns only new and/or live events.
   Supported formats for date formatted time stamps include RFC3339Nano,
   RFC3339, 2006-01-02T15:04:05, 2006-01-02T15:04:05.999999999,
   2006-01-02Z07:00, and 2006-01-02. The local timezone on the client will
   be used if you do not provide either a Z or a +-00:00 timezone offset
   at the end of the timestamp.  When providing Unix timestamps enter
   seconds[.nanoseconds], where seconds is the number of seconds that have
   elapsed since January 1, 1970 (midnight UTC/GMT), not counting leap
   seconds (aka Unix epoch or Unix time), and the optional .nanoseconds
   field is a fraction of a second no more than nine digits long.

EXAMPLES

Listening for Docker events

   After running docker events a container 786d698004576 is started and
   stopped (The container name has been shortened in the output below):

          # docker events
          2015-01-28T20:21:31.000000000-08:00 59211849bc10: (from whenry/testimage:latest) start
          2015-01-28T20:21:31.000000000-08:00 59211849bc10: (from whenry/testimage:latest) die
          2015-01-28T20:21:32.000000000-08:00 59211849bc10: (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 '2015-01-28'
          2015-01-28T20:25:38.000000000-08:00 c21f6c22ba27: (from whenry/testimage:latest) create
          2015-01-28T20:25:38.000000000-08:00 c21f6c22ba27: (from whenry/testimage:latest) start
          2015-01-28T20:25:39.000000000-08:00 c21f6c22ba27: (from whenry/testimage:latest) create
          2015-01-28T20:25:39.000000000-08:00 c21f6c22ba27: (from whenry/testimage:latest) start
          2015-01-28T20:25:40.000000000-08:00 c21f6c22ba27: (from whenry/testimage:latest) die
          2015-01-28T20:25:42.000000000-08:00 c21f6c22ba27: (from whenry/testimage:latest) stop
          2015-01-28T20:25:45.000000000-08:00 c21f6c22ba27: (from whenry/testimage:latest) start
          2015-01-28T20:25:45.000000000-08:00 c21f6c22ba27: (from whenry/testimage:latest) die
          2015-01-28T20:25:46.000000000-08:00 c21f6c22ba27: (from whenry/testimage:latest) stop

   The following example outputs all events that were generated in the
   last 3 minutes, relative to the current time on the client machine:

          # docker events --since '3m'
          2015-05-12T11:51:30.999999999Z07:00  4386fb97867d: (from ubuntu-1:14.04) die
          2015-05-12T15:52:12.999999999Z07:00  4386fb97867d: (from ubuntu-1:14.04) stop
          2015-05-12T15:53:45.999999999Z07:00  7805c1d35632: (from redis:2.8) die
          2015-05-12T15:54:03.999999999Z07:00  7805c1d35632: (from redis:2.8) stop

   If you do not provide the --since option, the command returns only new
   and/or live events.

HISTORY

   April 2014, Originally compiled by William Henry (whenry at redhat dot
   com) based on docker.com source material and internal work.  June 2014,
   updated by Sven Dowideit SvenDowideit@home.org.au June 2015, updated
   by Brian Goff cpuguy83@gmail.com October 2015, updated by Mike Brown
   mikebrow@gmail.com





Opportunity


Personal Opportunity - Free software gives you access to billions of dollars of software at no cost. Use this software for your business, personal use or to develop a profitable skill. Access to source code provides access to a level of capabilities/information that companies protect though copyrights. Open source is a core component of the Internet and it is available to you. Leverage the billions of dollars in resources and capabilities to build a career, establish a business or change the world. The potential is endless for those who understand the opportunity.

Business Opportunity - Goldman Sachs, IBM and countless large corporations are leveraging open source to reduce costs, develop products and increase their bottom lines. Learn what these companies know about open source and how open source can give you the advantage.





Free Software


Free Software provides computer programs and capabilities at no cost but more importantly, it provides the freedom to run, edit, contribute to, and share the software. The importance of free software is a matter of access, not price. Software at no cost is a benefit but ownership rights to the software and source code is far more significant.


Free Office Software - The Libre Office suite provides top desktop productivity tools for free. This includes, a word processor, spreadsheet, presentation engine, drawing and flowcharting, database and math applications. Libre Office is available for Linux or Windows.





Free Books


The Free Books Library is a collection of thousands of the most popular public domain books in an online readable format. The collection includes great classical literature and more recent works where the U.S. copyright has expired. These books are yours to read and use without restrictions.


Source Code - Want to change a program or know how it works? Open Source provides the source code for its programs so that anyone can use, modify or learn how to write those programs themselves. Visit the GNU source code repositories to download the source.





Education


Study at Harvard, Stanford or MIT - Open edX provides free online courses from Harvard, MIT, Columbia, UC Berkeley and other top Universities. Hundreds of courses for almost all major subjects and course levels. Open edx also offers some paid courses and selected certifications.


Linux Manual Pages - A man or manual page is a form of software documentation found on Linux/Unix operating systems. Topics covered include computer programs (including library and system calls), formal standards and conventions, and even abstract concepts.