-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Push to private registry #5429
Comments
That is not a realistic combination. If you are using HTTP then there is no certificate. If you have a self-signed certificate then you are using HTTPS. |
Thank you for your reply @tonistiigi , sorry my bad, I tried so many combinations that I was lost at a certain point. I tried again with:
and with:
and I got in both:
and with
I have also added a Anything else I can try? |
If you only push to an HTTP registry, there's no need to configure it in a file; you can simply add the parameter registry.insecure=true. |
I am using the rooless docker image ( moby/buildkit:rootless
v0.16.0
), and I am trying to build and push an image to a private registry that uses http and has a self-signed certificate.I have tried multiple solutions that I have found a bit everywhere including:
buildkitd.toml
to~/.config/buildkit
with:I have tried with and without the port in the url, with and without the certificate, and with and without the insecure-entitlements.
config.toml
--registry-auth-tlscontext host=http://my-repo,insecure=true,ca=/home/user/self-signed-cert.crt
--config
, but it does not exist anymore, apparently--output type=image,name=my-repo/name/image:0.0.1,push=true,registry.insecure=true
At the end, I think that the configuration is simply ignored as I always get (except for the config flag):
error: failed to solve: failed to push my-repo/name/image:0.0.1: failed to do request: Head "https://my-repo/v2/name/image/blobs/sha256:etc": tls: failed to verify certificate: x509: certificate signed by unknown authority
Notice that the error mentions
https
and nothttp
, that's why I think my configuration is ignored.The command I pass is (plus the various options I mentioned above):
Do you have any suggestion?
The text was updated successfully, but these errors were encountered: