docker-compose up and user inputs on stdin

情到浓时终转凉″ 提交于 2019-12-03 16:04:28

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
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!