@rneugeba: winpty did the job, tnx!
winpty docker exec -it mediawiki_web_1 bash
root@bd9007e832ec:/# ls
bin boot data dev entrypoint.sh etc home lib lib64 media mnt opt proc root run sbin srv sys tmp usr var
PS: I should add that I’ve added the following to my docker-compose.yml-file:
stdin_open: true
tty: true