"Pull from OCI registry" behind proxy server doesn't work from PVE-WebUI

Jun 10, 2024
9
5
3
Hi,

I've installed PVE9.1.1 and I'm testing the new LXC from OCI-Images feature and have a problem pulling images from repository behind a http-proxy from PVE-WebUI.
If I try to query the tags from a container reference (e.g. docker.io/hello-world), a timeout occurs.

Running the command
Code:
skopeo list-tags docker://docker.io/hello-world
from shell, got a timeout, too.

If I set the environment variables http_proxy and https_proxy the skopeo command works fine and lists the available tags.

I've created a proxy.sh in /etc/profiles.d, did a server reboot and the skopeo command works fine again. But if I try to query the tags from the WebUI now, the timeout occurs again.
 
Last edited:
I experience the same from the webapp, copying the image from the shell works but I can't get the container to run (I expect im pulling the image wrong or missing some steps)
I also notice the download image window from the webapp also freezes and causes the browser to timeout, the only way to recover is refresh the browser.

If I pull the image from another proxmox host that isn't behind a proxy, the image pulls and runs as expected.

Both systems running the latest versions from the community repository.
 
PVE webui use pvedaemon.service and pveproxy.service to manage ui operates, cant user your proxy config directly. You can use pvexxx.service.d/http-proxy.conf to config your PVE UI http proxy :

```
[Service]
Environment="HTTP_PROXY=http://yourproxy: port"
Environment="HTTPS_PROXY=http://yourproxy: port"
Environment="NO_PROXY=localhost...."
```

then
systemctl daemon-reload
and restart the two services.
 
Last edited: