-
Notifications
You must be signed in to change notification settings - Fork 243
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
[BUG] Podman does not work behind a corporate proxy #3166
Comments
@vrothberg |
Via the HTTP{S}_PROXY environment variables. |
In the host OS (Windows) are environement variables HTTP{S}_PROXY set. |
Did you set the variables before or after |
The provided podman in the host OS doesn't know The result of
|
Would you open an issue against github.com/containers/podman and fill out the issue template? I will pull in the Windows folks if needed. |
We do set these variables for our VM. We will also verify this on our end. |
Can you log in to the VM and see if |
An issue was created. |
@gbraad |
|
@gbraad |
When I connect using
Where 10.x.y.z is my VPN ip, 192.168.u.v is my WLAN ip and 172.28.96.1 is Hyper-V virtual ethernet adapter ip. The VM environment variables HTTP_PROXY, HTTPS_PROXY and NO_PROXY are not set. |
When I try
|
Podman machine solve this using ignition config containers/podman#13209 but as part of CRC since we are using pre configured VM we need to honor proxy config option to the VM like we are doing for openshift. As of now we are just ignoring the proxy config for podman preset. Meanwhile @mkonzal you can try containers/podman#11941 (comment) and let us know if that is working? |
Just introducing
introducing
and the restart of CRC (
I was not able to execute |
Adding
and running |
At the moment, the proxy configuration done in crc is not used by podman-remote. This happens because we don't propagate the needed environment variable to the services podman uses in the VM. This commit creates a /etc/environment.d/proxy-env.conf file which will be used automatically by systemd when it spawns podman.service for rootless use (ie through a systemd user instance) This then adds a /etc/systemd/system/podman.service.d/proxy-env.conf file to achieve the same for podman.service used as root (in the main systemd instance). This file re-uses the env vars defined in /etc/environment.d/proxy-env.conf This fixes crc-org#3166
Thanks for your fix and support. |
General information
crc setup
before starting it (Yes/No)? YesCRC version
CRC status
CRC config
Host Operating System
Steps to reproduce
Expected
pull will be successful like before in openshift
Actual
Trying to pull docker.io/library/httpd:latest...
Error: initializing source docker://httpd:latest: pinging container registry registry-1.docker.io: Get "https://registry-1.docker.io/v2/": dial tcp: lookup registry-1.docker.io: no such host
When I disconnect from the coporate VPN and use direct connection to the internet the pull works also with current proxy settings.
Logs
The text was updated successfully, but these errors were encountered: