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

Docker buildx does not have access to restricted repos #376

Open
klutchell opened this issue Dec 8, 2022 · 1 comment
Open

Docker buildx does not have access to restricted repos #376

klutchell opened this issue Dec 8, 2022 · 1 comment

Comments

@klutchell
Copy link
Collaborator

Since we made the change in #335 to login to registries after all Docker build and tests, we no longer have the option to cache-to or cache-from registries that require authentication.

Example: https://github.com/klutchell/dnscrypt-proxy-docker/blob/d33b53b670dc76808164ef69d09c30731fecf000/docker-bake.hcl#L18-L27

We could could consider logging in before Docker bake, but we need to consider if that would potentially leak secrets during a bake step?

@klutchell klutchell changed the title Docker build does not have credentials for private cache-to and cache-from Docker buildx does not have credentials Feb 6, 2023
@klutchell klutchell changed the title Docker buildx does not have credentials Docker buildx does not have access to restricted repos Feb 6, 2023
@klutchell
Copy link
Collaborator Author

This is also an issue when trying to use private repos as a base image.

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