-
Notifications
You must be signed in to change notification settings - Fork 1.2k
How to set the security token for the buildkit backend? #1050
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
Comments
Seems your registry is using a self-signed certificate. You need to add your ca as a trusted root in the buildkit container. |
Of course, I have added the ca in the buildkit container,
But I still got the error.
|
You need to set them to the system certs. There is no docker running in the container. Eg. https://unix.stackexchange.com/questions/464484/install-self-signed-certificate-to-alpine-linux/464495#464495 should do it. |
Thanks @tonistiigi . I could not understand the first very clear (Get a clean environment (This was my first major issue)) . I just copy the cert to /usr/local/share/ca-certificates and run the command
|
@tonistiigi |
Does buildkitd cache the system certificates somehow? For me it acted as though it did not pick up changes to the installed certs even though other programs ( I tried installing the cert manually:
I kept getting the "certificate signed by unknown authority" error. I could tell the cert was installed correctly because What ended up working for me was mounting an already-configured
I feel like there should be an easier way, but at least it worked in the end. Anyway, hopefully this helps someone. |
I think the |
I start buildkit with docker(moby/buildkit) as following.
And set the env by
export BUILDKIT_HOST=tcp://0.0.0.0:1234
after buildkit is deployed.But when I build the docker images by
I got an error as following
I still got the error after copied the docker.config into the buildkit container.
Could anyone teach me How to fix this problem?
The text was updated successfully, but these errors were encountered: