You are attempting an update?
Where is your MySQL/MariaDB running? On the host, on an other server
What do you have as db_host in your /var/lib/egroupware/header.inc.php?
The errors you see are from not being able to connect to your database. It’s most like be caused by a user in MySQL/MariaDB is bound to an IP address or “localhost” (not 127.0.0.1, but the unix domain socket). As the later is the default for our installation, we pass the socket into the container, so you can continue to use localhost. If you used - for whatever reason - an other IP, it will probably not work, because the database sees the connection now under the docker IP. To cut that short, if your database runs on the host: use localhost for db_host in header.inc.php and
docker restart egroupware.
By the way, not using -d shows the stdout, but will not detach from your terminal, so if you hit Ctrl-C, you will terminate the containers. Better use -d and and run
docker-compose logs -f to tail the stderr of the containers.