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"},