Univention Bugzilla – Bug 47439
Docker-Apps may fail to upgrade behind a proxy
Last modified: 2018-09-26 13:24:42 CEST
When installing a docker App the hosts proxy settings are copied into the container. When the docker App is already installed and the proxy is added or changed afterwards, the new settings are not copied into the docker container.
We should add some kind of pre-upgrade script to take care of such situation.
Proxy settings are now updated in the container before the upgrade.
Additionally, pull now raises an Abort exception.
I had the problem that after setting up my proxy i forgot to restart the docker daemon. Then i wanted to upgrade a docker app. The pull failed (because the docker daemon couldn't connect to the registry) but the upgrade did continue up to the step of starting the container. This failed and then the whole abort, remove, reinstall broke my app.
So better stop after the pull fails
Works for me during upgrade (upgrade stops but does not touch the old app) and install (removes the app)
Ok, works during App updates.
This bug affects those apps that need an internet connection. (Mainly appbox)
Note that this is not a "live adaption" of changed proxy settings on the host. The new proxy settings are applied when an App update is installed, which may or may not be possible at this time.
While no App update is available (or installed), the container does not have a working internet connection and thus cannot install errata updates.
I still think this is okay for now. At least works better.