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.

  • Cannot increase size for docker container - Ubuntu 16.04
  • Docker exec in bash script
  • Lumen does not read env from system during request
  • Docker Rest API '404 NOT FOUND'
  • Docker container not starting (docker start)
  • Cassandra: How to increase the number of node instances in localhost
  • 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 });

  • How to access local file when building from Dockerfile?
  • Create app with image from own docker registry on OpenShift 3.1
  • Push Docker Repository to Dockerhub with Jenkins
  • Can't connect to docker published port for tftp
  • Difference between service and container in docker compose
  • Installing rpy2 with Docker is unable to find R path
  • Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.