Docker Community Forums

Share and learn in the Docker community.

Unable to open bash shell for a docker container on windows

Hello

I am new to Docker and I am trying to launch a Hadoop container using a Cloudera quickstart docker image(cloudera/quickstart). I have done the following steps:

1.)  docker pull cloudera/quickstart:latest
2.) docker run --hostname=quickstart.cloudera --privileged=true -t -i -p 8888 -d 4239cd2958c6 /usr/bin/docker-quickstart
3.) docker ps
PS D:\Docker> docker ps
CONTAINER ID        IMAGE               COMMAND                  CREATED             STATUS              PORTS                     NAMES
051f62430bfd        4239cd2958c6        "/usr/bin/docker-qui…"   12 minutes ago      Up 12 minutes       0.0.0.0:32768->8888/tcp   peaceful_neumann 

After the above 3 steps I see that my docker container is running using the cloudera/quick start image. Now I tried to use the bash shell for this container using:
docker exec -it 051f62430bfd bash

I keep waiting but nothing shows up. Is there something wrong with my configuration ? what changes I’ll have to make for this to work?

Any help would be appreciated. Thank you.

There is a section ‘Connecting To The Shell’ in the docs for cloudera/quickstart where you see that you have to use docker attach.