Monitor events Run in API Explorer
Stream real-time events from the server.
Various objects within Docker report events when something happens to them.
Containers report these events: attach
, commit
, copy
, create
, destroy
, detach
, die
, exec_create
, exec_detach
, exec_start
, exec_die
, export
, health_status
, kill
, oom
, pause
, rename
, resize
, restart
, start
, stop
, top
, unpause
, update
, and prune
Images report these events: delete
, import
, load
, pull
, push
, save
, tag
, untag
, and prune
Volumes report these events: create
, mount
, unmount
, destroy
, and prune
Networks report these events: create
, connect
, disconnect
, destroy
, update
, remove
, and prune
The Docker daemon reports these events: reload
Services report these events: create
, update
, and remove
Nodes report these events: create
, update
, and remove
Secrets report these events: create
, update
, and remove
Configs report these events: create
, update
, and remove
The Builder reports prune
events
Query parameters
-
Show events created since this timestamp then stream new events.
-
Show events created until this timestamp then stop streaming.
-
A JSON encoded value of filters (a
map[string][]string
) to process on the event list. Available filters:config=<string>
config name or IDcontainer=<string>
container name or IDdaemon=<string>
daemon name or IDevent=<string>
event typeimage=<string>
image name or IDlabel=<string>
image or container labelnetwork=<string>
network name or IDnode=<string>
node IDplugin
= plugin name or IDscope
= local or swarmsecret=<string>
secret name or IDservice=<string>
service name or IDtype=<string>
object to filter by, one ofcontainer
,image
,volume
,network
,daemon
,plugin
,node
,service
,secret
orconfig
volume=<string>
volume name
curl \
--request GET 'http://api.example.com/v1.44/events'
{
"Type": "container",
"Action": "create",
"Actor": {
"ID": "ede54ee1afda366ab42f824e8a5ffd195155d853ceaec74a927f249ea270c743",
"Attributes": {
"name": "my-container",
"image": "alpine:latest",
"com.example.some-label": "some-label-value"
}
},
"scope": "local",
"time": 1629574695,
"timeNano": 1629574695515050031
}
{
"message": "Something went wrong."
}
{
"message": "Something went wrong."
}
{
"message": "Something went wrong."
}
{
"message": "Something went wrong."
}