Univention Bugzilla – Bug 44785
Proxy settings of host are not inherited to docker containers
Last modified: 2017-09-13 17:11:49 CEST
Please fix for 4.1-4
+++ This bug was initially created as a clone of Bug #44561 +++
When UCS runs behind a proxy, the proxy settings of the host (proxy/http="http://10.200.30.254:8080" and proxy/https="https://10.200.30.254:8080") are not passed to the docker containers.
Please note that this is not about the docker daemon ("docker pull" works fine). This is about the applications inside the docker container. They cannot access the internet because they are not aware of the proxy.
This means that you cannot install Nextcloud/ownCloud plugins, for example (or install debugging tools inside the container).
As a workaround, you can set this UCR variable BEFORE the App installation (thanks Dirk):
ucr set --force appcenter/apps/nextcloud/docker/params="--env http_proxy=http://10.200.30.254:8080 --env
I think we should do this automatically as some kind of pre-hook before the main app installation, if proxy/http(s) is set on the host.
The challenge is, that ENV variables can only be passed to a container while it is being created. They cannot be changed for an existing container afterwards:
This means that we can only change the ENV variables before the installation or before an app upgrade, afaics. I think we also need something like "univention-app reinstall" that simply removes the current container and creates a new one without purging app data. But that's a separate bug.
There is a Customer ID set so I set the flag "Enterprise Customer affected".
univention-appcenter r82708 errata4.1-4