Fleet uses osquery tables to query operating system, hardware, and software data. Each table provides specific data for analysis and filtering.
docker_container_labels
Docker container labels.
Column | Type | Description |
---|---|---|
id | text | Container ID |
key | text | Label key |
value | text | Optional label value |
This table exposes all Docker labels on running containers. By joining it to the docker_containerstable, we can list containers and their maintainers.
SELECT dl.value, dc.name, FROM docker_container_labels dl JOIN docker_containers dc ON dl.id = dc.id WHERE key='maintainer';