You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm running Clair in combo mode within a Compose stack. Oddly, I'm unable to generate a vulnerability report with clairctl unless I specify an invalid config file with --config.
Is docker compose exec clair clairctl executing the clairctl binary from within the clair container, if so, why define the dedicated clairctl container?
When there is no --host specified the default http://localhost:6060/ will be used but it seems like the application is listening at 8080 (I suppose your config reflects that), I think the config flag is a red-herring in this example, specifying no config will use the default (./config.yaml) and specifying a config file that doesn't exist will just be ignored.
You are correct; the clairctl service is not needed.
Regarding your second paragraph: it's not even getting that far. I would expect some trace-level logs from the http Go package upon setting the GODEBUG environment variable to http1debug=1 or http2debug=1, but nothing happens. I think this is because it's silently-failing right after the command for this subcommand executes.
Additionally, changing 8080 to 6060 in my config does not fix this, unfortunately.
It's hard to know what's happening without logs, could you try running clairctl with debug enabled? Also, can you paste your config with sensitive info deleted? Thanks.
Summary
I'm running Clair in
combo
mode within a Compose stack. Oddly, I'm unable to generate a vulnerability report withclairctl
unless I specify an invalid config file with--config
.Want
docker compose exec clair clairctl report ubuntu:focal
should produce something like this:
Got
docker compose exec clair clairctl report ubuntu:focal
does nothing, unless I do this:
Configuration
Clair version
4.8
Compose manifest
The text was updated successfully, but these errors were encountered: