in reply to Docker Container Started With Docker-Compose and <STDIN>
This also behaves as expected, reading nothing and exiting immediately:$ echo "yes" | docker run --rm -i debian perl -e 'print(<STDIN>)' yes
So, if you have a script that is reading STDIN inside docker and hanging, it sounds like you need to make sure not to specify "-i" from the docker-compose config, or maybe something else is happening entirely.$ docker run --rm debian perl -e 'print(<STDIN> or "(EOF)")' (EOF)
|
|---|