From 6613eb319e12203101bb4f7cc8b00f818ad241a1 Mon Sep 17 00:00:00 2001 From: vjeffrey Date: Fri, 22 Sep 2023 16:58:38 -0600 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20also=20support=20the=20docker=20?= =?UTF-8?q?conn=20for=20cnquery=20shell=20docker=20=20(#1849)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- providers/os/config/config.go | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/providers/os/config/config.go b/providers/os/config/config.go index fbce2e1b9f..d3cd6493b0 100644 --- a/providers/os/config/config.go +++ b/providers/os/config/config.go @@ -197,6 +197,39 @@ var Config = plugin.Provider{ }, }, }, + { + Name: "docker", + Use: "docker", + Short: "a running docker or docker image", + MinArgs: 1, + MaxArgs: 2, + Discovery: []string{ + docker_engine.DiscoveryContainerRunning, + docker_engine.DiscoveryContainerImages, + }, + Flags: []plugin.Flag{ + { + Long: "sudo", + Type: plugin.FlagType_Bool, + Default: "false", + Desc: "Elevate privileges with sudo.", + ConfigEntry: "sudo.active", + }, + { + Long: "id-detector", + Type: plugin.FlagType_String, + Default: "", + Desc: "User override for platform ID detection mechanism", + Option: plugin.FlagOption_Hidden, + }, + { + Long: "disable-cache", + Type: plugin.FlagType_Bool, + Default: "false", + Desc: "Disable the in-memory cache for images. WARNING: This will slow down scans significantly.", + }, + }, + }, { Name: "filesystem", Aliases: []string{"fs"},