Skip to content

Commit

Permalink
🐛 also support the docker conn for cnquery shell docker <id> (#1849)
Browse files Browse the repository at this point in the history
  • Loading branch information
vjeffrey authored Sep 22, 2023
1 parent 365fad7 commit 6613eb3
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions providers/os/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"},
Expand Down

0 comments on commit 6613eb3

Please sign in to comment.