project-copacetic / copacetic

🧵 CLI tool for directly patching container images!
https://project-copacetic.github.io/copacetic/
Apache License 2.0
1.03k stars 69 forks source link

[QUESTION] <title>Does Copa support the HTTP protocol? #829

Open Fr1ezy opened 5 days ago

Fr1ezy commented 5 days ago

What is your question?

Does Copa support the HTTP protocol?

Using Copa for image repair error:

 => resolve image config for docker-image://192.168.0.194:8080/library/utils-base:latest          0.0s
Error: failed to do request: Head "https://192.168.0.194:8080/v2/library/utils-base/manifests/latest": http: server gave HTTP response to HTTPS client

This is my internal network address, using the HTTP protocol

I have already set it up in/etc/docker/daemon. json "insecure-registries": ["192.168.0.194:8080"] and /etc/buildkit/buildkitd.toml

[registry."192.168.0.194:8080"]
  http = true

But it still reports an error

pradhans0906 commented 1 day ago

can you please share more info about your set up , I have spawned a new local registry and I am able to patch through copa.

`copa patch --scanner docker-scout \ --image localhost:8080/library/nginx:latest \ --debug DEBU[0000] Trying docker driver DEBU[0000] serving grpc connection DEBU[0000] stopping session DEBU[0000] serving grpc connection

1 resolve image config for docker-image://localhost:8080/library/nginx:latest

1 DONE 0.7s

DEBU[0000] Using debian:12-slim as basis for tooling image

2 resolve image config for docker-image://localhost:8080/library/nginx:latest

2 DONE 0.0s

`