Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐛 also support the docker conn for cnquery shell docker <id> #1849

Merged
merged 1 commit into from
Sep 22, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading