Need more proxy support
The test found that only system network interface proxy settings are supported; shell environment variables HTTP_PROXY and HTTPS_PROXY are not supported.
Hi, thanks for the report! Is this just when running tests or always?
Can you try running the following?
container system stop launchctl setenv HTTP_PROXY $HTTP_PROXY container system start
after setenv, got
% container --debug run -it --rm -d --name mysql mysql:latest Error: unknown: "HTTPClientError.connectTimeout"
@yarshure What was the output without the HTTP_PROXY setenv command?
Can you please share the output from this command?
launchctl print gui/501/com.apple.container.container-core-images
Just looking for the environment section - and that if it contains the HTTP_PROXY variable.
Can you please share the output from this command?
launchctl print gui/501/com.apple.container.container-core-imagesJust looking for the environment section - and that if it contains the
HTTP_PROXYvariable.
launchctl print show,
inherited environment = {
HTTP_PROXY => 127.0.0.1:10081
SSH_AUTH_SOCK => /private/tmp/com.apple.launchd.wGfHmsWmMd/Listeners
}
Doesn't need set HTTPS_PROXY?
@yarshure Is container not behaving correctly with the environment variable set with launchctl?
Closing as stale for now. @yarshure Feel free to open a new issue if this is still a problem. Thanks!
@yarshure Is container not behaving correctly with the environment variable set with launchctl?
Pulling images works fine as this happens on the host. But how can I use a corporate proxy listening on localhost:3128 inside a container?