-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Proxy support for podman machine on Windows #14589
Comments
I am having the same issue/feature request:
After setting the |
using the version on current master (merged #14806) To confirm the proxy is reachable and working I check the following from the podman VM.
To setup the proxy variables and start the environment
Note that the message After which:
should work with proxy |
@n1hility The message PS> $env:http_proxy="10.0.21.80:3213"
PS> $env:https_proxy="10.0.21.80:3213"
PS> podman machine start
Starting machine "podman-machine-default"
Installing proxy support
...
Machine "podman-machine-default" started successfully
PS> wsl -d podman-machine-default cat /etc/profile.d/default-env.sh
export http_proxy="10.0.21.80:3213"
export https_proxy="10.0.21.80:3213"
export HTTP_PROXY="10.0.21.80:3213"
export HTTPS_PROXY="10.0.21.80:3213"
PS> podman machine stop
Machine "podman-machine-default" stopped successfully
PS> $env:https_proxy="10.0.21.120:3213"
PS> $env:http_proxy="10.0.21.120:3213"
PS> .\podman.exe machine start
Starting machine "podman-machine-default"
...
Machine "podman-machine-default" started successfully
PS> wsl -d podman-machine-default cat /etc/profile.d/default-env.sh
export http_proxy="10.0.21.120:3213"
export https_proxy="10.0.21.120:3213"
export HTTP_PROXY="10.0.21.120:3213"
export HTTPS_PROXY="10.0.21.120:3213" No intermediate message for the proxy values was shown. Though when someone is experimenting or trying to make it work, this information could be helpful. |
On Windows you can quickly test this:
Open another terminal session
You should see the incoming If you would break the proxy in the first session the connection should be interrupted. |
Thanks! Do you have any advice on how to find out the Windows host IP within the podman VM? I am using cntlm on windows and it listens on localhost:3128 . I tried the command you posted but there is no response, I assume that the IP does not match in my case |
Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind feature
Description
Description
I used the podman-v4.1.0.msi to install podman on windows.
I'm sitting behind a corporate proxy.
I open the terminal and set the environment variables
I type podman machine init
Describe the results you received:
It downloads the fedora image so initially proxy works but then in endless loop
Fedora 35 - x86_64 0.0 B/s | 0 B 03:21
So proxy isnt set for curl as it looks.
After ctrl+c
Curl error (7): Couldn't connect to server for https://mirrors.fedoraproject.org/metalink?repo=fedora-35&arch=x86_64 [Failed to connect to mirrors.fedoraproject.org port 443 after 20157 ms: Connection refused]
It seems there is no proxy set for installing updating packages
The text was updated successfully, but these errors were encountered: