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

Failed to pull image from self-signed certificate registry #3218

Closed
ShoupingShan opened this issue Oct 25, 2022 · 2 comments
Closed

Failed to pull image from self-signed certificate registry #3218

ShoupingShan opened this issue Oct 25, 2022 · 2 comments

Comments

@ShoupingShan
Copy link

Failed to pull base image from a self-signed certificate registry after setting buildkitd.toml

buildctl --addr tcp://127.0.0.1:1234 build --frontend dockerfile.v0 --local context=./docker/ --local dockerfile=./docker  --opt filename=Dockerfile --output type=image,name=xxx/test-buildkit:1.0.0,push=true
error: failed to solve: failed to fetch anonymous token: Get "https://100.79.16.50:20202/auth/v2/registry/auth/?scope=repository%3Aatelier2%2Fimage-cp37%3A%2Cpull&service=dockyard": x509: certificate signed by unknown authority

buildkitd.toml

[worker.oci]
    enabled = true
    [registry."100.79.16.50:20202"]
      http = false
      insecure = true
@bbccaaac
Copy link

I have the same promblem. How to resolve it?

@tonistiigi
Copy link
Member

#4211 #4420 should fix this

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