osquery-1/specs/posix/docker_container_ports.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

16 lines
683 B
Plaintext

table_name("docker_container_ports")
description("Docker container ports.")
schema([
Column("id", TEXT, "Container ID", additional=True),
Column("type", TEXT, "Protocol (tcp, udp)"),
Column("port", INTEGER, "Port inside the container"),
Column("host_ip", TEXT, "Host IP address on which public port is listening"),
Column("host_port", INTEGER, "Host port")
])
implementation("applications/docker@genContainerPorts")
examples([
"select * from docker_container_ports",
"select * from docker_container_ports where id = '1234567890abcdef'",
"select * from docker_container_ports where id = '11b2399e1426d906e62a0c357650e363426d6c56dbe2f35cbaa9b452250e3355'"
])