docker started via shelljs not responding to input in interactive mode

I am starting my docker containers via shelljs.

The container has a sh script that is running on startup.

  • How to configure Jenkins in Docker?
  • Docker Image to run on any flavor of Linux
  • Can't join Kubernetes master from nodes hosts by Vagrant
  • Set hostname of service container to host's hostname
  • how do I get vertical bars to show up properly in tmux running in docker?
  • Error when running during retraining for image classifier based on tensorflow for poets
  • This is behaving as intended when the output of the container is only passive.

    But when start the container without startscript and try to give some manual input (like cd dir), the docker interactive shell is not responding to my input.

    So my question: is it possible to use shelljs to start a docker container in interactive mode and interact with this container as if i had started it directly from the command line?

    here is a example shelljs command i like to run:

    exec("docker run -it --name=test user:image", { silent: false });

  • Securing local docker private registry
  • NodeJS / Express cannot connect to mongodb running in docker
  • Import broker definitions into Dockerized RabbitMQ
  • WSO2 : how to download products in a Dockerfile?
  • What are the different ways of implementing Docker FROM?
  • Why is /etc/hosts file empty in my docker container?
  • Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.