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

The configuration file specifies the domain name to use http, but the push mode is still https #3557

Open
guolong123 opened this issue Jan 31, 2023 · 2 comments

Comments

@guolong123
Copy link

guolong123 commented Jan 31, 2023

my config file:

# cat buildkit-config.toml
debug = true
insecure-entitlements = [ "network.host", "security.insecure"]
[registry."registry.ketaops.cn"]
  http = true
# create buildx driver
docker buildx create --use --driver docker-container --platform linux/amd64,linux/arm64 --name multi-builder-1 --config ./buildkit-config.toml

# build image and push
docker buildx build --platform linux/amd64 -t registry.ketaops.cn/xishuhq/keta-agent:230130-2 -o type=registry .

# error
...
> exporting to image:
------
ERROR: failed to solve: failed to push registry.ketaops.cn/xishuhq/keta-agent:230130-2: failed to do request: Head "https://registry.ketaops.cn/v2/xishuhq/keta-agent/blobs/sha256:be916d61283eab10f4e91e8fdf4edf25ec5e6afe29e3750050801b7401ac1acd": x509: certificate is valid for ingress.local, not registry.ketaops.cn

I've tried using local IP+ port and found it works. Why is there a problem when using domain names?

In addition, the IP address resolved by my domain name is the Intranet address of my server, and this domain name supports only http, not https

@crazy-max
Copy link
Member

[registry."registry.ketaops.cn"]
  http = true
  insecure = true

might also be related to #3382

@guolong123
Copy link
Author

[registry."registry.ketaops.cn"]
  http = true
  insecure = true

也可能与#3382有关

Seen the [3382] (#3382), but I didn't set the HTTP and insecure at the same time, not only set the HTTP

Also, I have tried to set it at the same time and it doesn't work. It is OK to set http to ketaops.cn and also point the mirror address to ketaops.cn,It seems that using the full domain name is problematic

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

2 participants