mirror of https://github.com/docker/cli.git
fab55e13ce
Before this patch:
docker events --format=json
json
json
json
^C
With this patch:
docker events --format=json
{"status":"create","id":"4ac3bba8abd68961e627540fed81ad16d55b88e45629d7cdb792126d09b6488d","from":"hello-world","Type":"container","Action":"create","Actor":{"ID":"4ac3bba8abd68961e627540fed81ad16d55b88e45629d7cdb792126d09b6488d","Attributes":{"image":"hello-world","name":"dreamy_goldstine"}},"scope":"local","time":1693168508,"timeNano":1693168508190136885}
{"status":"attach","id":"4ac3bba8abd68961e627540fed81ad16d55b88e45629d7cdb792126d09b6488d","from":"hello-world","Type":"container","Action":"attach","Actor":{"ID":"4ac3bba8abd68961e627540fed81ad16d55b88e45629d7cdb792126d09b6488d","Attributes":{"image":"hello-world","name":"dreamy_goldstine"}},"scope":"local","time":1693168508,"timeNano":1693168508192851593}
{"Type":"network","Action":"connect","Actor":{"ID":"c54920dd5074a73e28bea62007e0334d81cc040a90372be311cf16806403d350","Attributes":{"container":"4ac3bba8abd68961e627540fed81ad16d55b88e45629d7cdb792126d09b6488d","name":"bridge","type":"bridge"}},"scope":"local","time":1693168508,"timeNano":1693168508212398802}
{"status":"start","id":"4ac3bba8abd68961e627540fed81ad16d55b88e45629d7cdb792126d09b6488d","from":"hello-world","Type":"container","Action":"start","Actor":{"ID":"4ac3bba8abd68961e627540fed81ad16d55b88e45629d7cdb792126d09b6488d","Attributes":{"image":"hello-world","name":"dreamy_goldstine"}},"scope":"local","time":1693168508,"timeNano":1693168508312969843}
^C
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
(cherry picked from commit
|
||
---|---|---|
.. | ||
docker-client-version.golden | ||
docker-client-version.json.golden | ||
docker-events-default.golden | ||
docker-events-json-action.golden | ||
docker-events-json-template.golden | ||
docker-events-json.golden | ||
docker-info-badsec-stderr.golden | ||
docker-info-badsec.golden | ||
docker-info-badsec.json.golden | ||
docker-info-daemon-warnings.json.golden | ||
docker-info-errors-stderr.golden | ||
docker-info-errors.golden | ||
docker-info-errors.json.golden | ||
docker-info-legacy-warnings.json.golden | ||
docker-info-no-swarm.golden | ||
docker-info-no-swarm.json.golden | ||
docker-info-plugins-warnings.golden | ||
docker-info-plugins.golden | ||
docker-info-plugins.json.golden | ||
docker-info-warnings.golden | ||
docker-info-with-labels-empty.golden | ||
docker-info-with-labels-nil.golden | ||
docker-info-with-swarm.golden | ||
docker-info-with-swarm.json.golden |