-
-
Notifications
You must be signed in to change notification settings - Fork 261
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
skopeo not inheriting outgoing proxy configuration #1509
Comments
Should we override the here Line 309 in ed2def1
I tested it in my environment $ nc -lnvp 1080
$ HTTPS_PROXY=http://127.0.0.1:1080 skopeo inspect docker://docker.io/hello-world
# netcat received the connection
$ nc -lnvp 1080
Listening on 0.0.0.0 1080
Connection received on 127.0.0.1 47912
CONNECT registry-1.docker.io:443 HTTP/1.1
Host: registry-1.docker.io:443
User-Agent: Go-http-client/1.1 |
We already pass proxy information from the server config to the client logic. So from within oci_images.go, we should be able to get the proxy by calling |
Hi @stgraber. Could you assign this issue to me? I was doing some tests, and I made certain progress. Thanks! |
Now, I'm able to get the proxy with what you said. req, err := http.NewRequest("GET", r.httpHost, nil)
proxy, err := r.http.Transport.(*http.Transport).Proxy(req) So, do I need to pass it to the skopeo command as I suggested in the previous comment or set it to |
Right, you'd want to use |
The proxy host address was not inherit to skopoe and as a consequence, it is not possible to connect to proxy to inspect OCI image. Closes: lxc#1509 Signed-off-by: Winicius Silva <winiciusab12@gmail.com>
Hi @stgraber, I tested the changes that I made. Now, it is possible to connect to the proxy, but with the example of the issue, the image can not be inspected, even if the |
The proxy host address was not passed to skopoe and as a consequence, it is not possible to connect to proxy to inspect OCI image. Closes: lxc#1509 Signed-off-by: Winicius Silva <winiciusab12@gmail.com>
The proxy host address was not passed to skopoe and as a consequence, it is not possible to connect to proxy to inspect OCI image. Closes: lxc#1509 Signed-off-by: Winicius Silva <winiciusab12@gmail.com>
Required information
Issue description
skopeo
does not inherit the outgoing proxy settings ofcore.proxy_http
andcore.proxy_https
.In some configurations, this results in an
Image not found
error due toskopeo
not being able to reach the Internet.Steps to reproduce
The below demonstrate that
skopeo
does not contact the configured proxy server.Information to attach
Underlying error as seen from
incus monitor
.Workaround
For the Zabbly-provided package...
The text was updated successfully, but these errors were encountered: