Univention Bugzilla – Bug 50969
docker compose create gets wrong main container id for main service
Last modified: 2020-03-18 12:27:56 CET
Is the services use the same image, it can happen that docker compose create() gets the wrong container id for the main service (appcenter/apps/APP_ID/container).
9e26a403474120ec840df2ee4d06509e48352f0a - univention-appcenter 5a605ac0e228652a7539b459fb4eca19221e229d 2e7aa337596c8b05ce8b35cf8b2479cb7790ca5b - yaml 5c0ae2681d25d7faca3b9bbeec9a3fd59500e97d The logic for getting the container id for the main service is now as follows: * get container_name from main service in docker-compose.yaml * OR get the name from docker-compose ps (the name with '_${main_service}_') * OR us ${app_id}_${main_service_name}_1 * get container id from docker inspect ${container_name}
Code: OK YAML: OK The ucr variable appcenter/apps/$APPIDcontainer gets set to correct container id for apps that do and do not specify container names in their compose file. -> Verified
<http://errata.software-univention.de/ucs/4.4/485.html>