docker-py icon indicating copy to clipboard operation
docker-py copied to clipboard

`exec_run` not working

Open shivg7706 opened this issue 5 years ago • 1 comments

Hi, I am trying to run cqlsh using python SDK but whenever I run it doesn't give any output.

container.exec_run('cqlsh', stdin=True, tty=True) equivalent to docker exec -it cassandra cqlsh

shivg7706 avatar Aug 17 '20 10:08 shivg7706

I have similar problem, I want to create interactive shell from python SDK, I don't find any way to get stdin stream. stdin set to False have same behavior like True. I see that there is related issue #2744. There is two workarounds proposed but both of them use internal members of SDK. There is existing issue from 2017 (8 years ago!) that mentions sending data to stdin of container #1752. Another related issue from different repo: https://github.com/UMDLARS/dtanm/issues/35, there is mention of this question: https://stackoverflow.com/questions/26843625/how-to-send-to-stdin-of-a-docker-py-container that seems to have answer for problem. There is two MR that tried to solve this problem: #946 #239 Both closed without merging

wojtess avatar Aug 28 '25 19:08 wojtess