Univention Bugzilla – Bug 40135
When installing a Docker App fails: Docker container still exists
Last modified: 2015-12-09 16:47:12 CET
When the installation fails, "remove" is called. With a special argument: --do-not-backup. Because of that the docker container is not stopped (done in the backup routine). Then the container is to be removed. But as it was not stopped, this fails.
Fixed in univention-appcenter 5.0.19-18.77.201511302249 New functions docker.stop() added which bypasses the Stop.call() command - as the superior init.d script is already removed at that point. Here only the real docker stop is important.
OK: advisory (changed wording in r66072) OK: Test: # univention-app install dudle-docker **** in second terminal: **** # pkill -f univention-join **** in first terminal: **** Something went wrong while joining the system Something went wrong while joining the system Setup script failed! Aborting... Going to remove Dudle-docker (1.0.0-2) 314b75e353b79fdedaa2654608a7bca564c37728839190767f651dc017186648 314b75e353b79fdedaa2654608a7bca564c37728839190767f651dc017186648 Removing any system startup links for /etc/init.d/docker-app-dudle-docker ... /etc/rc0.d/K14docker-app-dudle-docker /etc/rc1.d/K14docker-app-dudle-docker /etc/rc2.d/S41docker-app-dudle-docker /etc/rc3.d/S41docker-app-dudle-docker /etc/rc4.d/S41docker-app-dudle-docker /etc/rc5.d/S41docker-app-dudle-docker /etc/rc6.d/K14docker-app-dudle-docker Removing localhost from LDAP object [..] # docker ps CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES [empty] # docker images REPOSITORY TAG IMAGE ID CREATED VIRTUAL SIZE docker.software-univention.de/ucs-appbox-amd64 4.1-0 e0cf89397138 3 weeks ago 373.8 MB [only the base image] (which btw. still has the atd bug)
<http://errata.software-univention.de/ucs/4.1/27.html>