Univention Bugzilla – Bug 38334
Make docker containers register their current IP address in LDAP on boot
Last modified: 2015-11-17 12:12:17 CET
UCS systems running in docker containers need to update their IP addresses in LDAP on boot. We have /etc/rc2.d/S98univention-network-common but that only registers the address when interfaces/eth0/type=dhcp. Maybe we simply provide a slightly modified version in univention-docker-container-mode. Background: Docker (1.3.2) dynamically assigns a new IP address to each container whenever the container is (re-)started. While future Docker versions will provide options to configure its behavior in more detail, currently there are only some third party workaround scripts, none of which look satisfying yet.
univention-docker-container-mode now installs an adjusted version of the univention-network-common init script. The adjusted version uses --force to write the IP to UMC.
Please merge the changes to 4.1.
Maybe you merged it already.
Original commit 60126 was merged to 4.1 in 63270.
Ok, I also added a UCS 4.1 changelog entry: Docker images running UCS in container mode now update their IP addresses in LDAP. This is useful because Docker dynamically assignes IP addresses during container restarts. Additionally these containers also try to register the IP also with a <literal>consul</literal> and <literal>etcd</literal> service running the Docker host.
Ok, the changelog part about etcd and consul has been split of for Bug 38331..
UCS 4.1 has been released: https://docs.software-univention.de/release-notes-4.1-0-en.html https://docs.software-univention.de/release-notes-4.1-0-de.html If this error occurs again, please use "Clone This Bug".