docker compose up and user inputs on stdin
That is expected behaviour. up is not interactive. It can start
multiple containers, so you can’t have a single terminal that has
stdin open for multiple containers.
But there is option to you can do with docker-compose.
Attach in different window, when you start with docker-compose up, you can add -d parameter and it will start that docker in background.
docker-compose up -d
Then just attach that docker and enter value
docker attach play_001_plop_1
Single line command:
docker-compose up -d && docker attach play_001_plop_1