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

Private Registry #3

Closed
blacs30 opened this issue May 14, 2020 · 1 comment
Closed

Private Registry #3

blacs30 opened this issue May 14, 2020 · 1 comment

Comments

@blacs30
Copy link
Contributor

blacs30 commented May 14, 2020

Thanks for this great exporter!

I face a problem where some of the images are in a private registry.
When I use the configuration for trivy where I set TRIVY_USERNAME,TRIVY_PASSWORD and TRIVY_AUTH_URL then trivy scans the images fine.
However it somehow looses capability to scan images on public docker/gcr/quay registries.

Have you seen this issue and found a solution for it?

@blacs30
Copy link
Contributor Author

blacs30 commented May 14, 2020

To answer myself:
Mount the dockerconfigjson for the private registry into the kube-trivy-exporter pod to /root/.docker/config.json. Don't set any env vars.
This works fine for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant