osquery-1/specs/posix/docker_container_mounts.table
seph a73ffad3bf tables: Add constraints and testing (#6105)
Co-Authored-By: Teddy Reed <teddy@casualhacking.io>
2019-12-12 20:45:15 -05:00

20 lines
911 B
Plaintext

table_name("docker_container_mounts")
description("Docker container mounts.")
schema([
Column("id", TEXT, "Container ID", index=True),
Column("type", TEXT, "Type of mount (bind, volume)"),
Column("name", TEXT, "Optional mount name", index=True),
Column("source", TEXT, "Source path on host"),
Column("destination", TEXT, "Destination path inside container"),
Column("driver", TEXT, "Driver providing the mount"),
Column("mode", TEXT, "Mount options (rw, ro)"),
Column("rw", INTEGER, "1 if read/write. 0 otherwise"),
Column("propagation", TEXT, "Mount propagation")
])
implementation("applications/docker@genContainerMounts")
examples([
"select * from docker_container_mounts",
"select * from docker_container_mounts where id = '1234567890abcdef'",
"select * from docker_container_mounts where id = '11b2399e1426d906e62a0c357650e363426d6c56dbe2f35cbaa9b452250e3355'"
])