Skip to content

Need more proxy support #156

Closed as not planned
Closed as not planned

Description

@yarshure

The test found that only system network interface proxy settings are supported; shell environment variables HTTP_PROXY and HTTPS_PROXY are not supported.

Activity

  1. katiewasnothere commented on Jun 12, 2025

    @katiewasnothere
    Contributor

    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

  2. yarshure commented on Jun 12, 2025

    @yarshure
    Author

    after setenv, got

    % container --debug run -it --rm -d --name mysql mysql:latest Error: unknown: "HTTPClientError.connectTimeout"

  3. katiewasnothere commented on Jun 12, 2025

    @katiewasnothere
    Contributor

    @yarshure What was the output without the HTTP_PROXY setenv command?

  4. adityaramani commented on Jun 12, 2025

    @adityaramani
    Contributor

    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.

  5. yarshure commented on Jun 12, 2025

    @yarshure
    Author

    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.

    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?

  6. katiewasnothere commented on Jun 24, 2025

    @katiewasnothere
    Contributor

    @yarshure Is container not behaving correctly with the environment variable set with launchctl?

  7. katiewasnothere commented on Aug 4, 2025

    @katiewasnothere
    Contributor

    Closing as stale for now. @yarshure Feel free to open a new issue if this is still a problem. Thanks!

  8. rob-weiss commented on Dec 22, 2025

    @rob-weiss

    @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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

No labels
No labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions