Interactive command-line application in a Docker container
To run your container interactively, use docker -it ...
to get an interactive tty. If you need more details of how this works, see the reference documentation or provide a specific example and command line that's giving you issues.