0

I have a dockerized server daemon that has a console. I can access it using docker attach <container> then run commands. How can send input to the console programmatically? Running something like echo "status" | docker attach <container> doesn't work as it gives the error the input device is not a TTY.

Bonus points: after I'm done, I use the sequence Ctrl+p,Ctrl+q to detach from the container. How would I do this?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.