docker events命令是用来打印出实时的系统事件
docker events [参数]
[root@centos79 ~]# docker events --help
Usage: docker events [OPTIONS]
Get real time events from the server
Aliases:
docker system events, docker events
Options:
-f, --filter filter Filter output based on conditions provided
--format string Format output using a custom template:
'json': Print in JSON format
'TEMPLATE': Print output using the given Go template.
Refer to https://docs.docker.com/go/formatting/ for more information about formatting output with templates
--since string Show all events created since timestamp
--until string Stream events until this timestamp
[root@centos79 ~]#
命令:
docker events -f "image"="c