Description of problem: `docker exec -it <name> /bin/bash` cannot work Version-Release number of selected component (if applicable): $ uname -a Linux rp.fedora 4.0.0-0.rc5.git4.1.fc22.x86_64 #1 SMP Fri Mar 27 13:51:23 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux $ sudo docker version Client version: 1.6.0 Client API version: 1.18 Go version (client): go1.4.2 Git commit (client): 0591dce/1.6.0 OS/Arch (client): linux/amd64 Server version: 1.6.0 Server API version: 1.18 Go version (server): go1.4.2 Git commit (server): 0591dce/1.6.0 OS/Arch (server): linux/amd64 How reproducible: Steps to Reproduce: 1. `sudo docker run --name some-nginx -d nginx:1.7` 2. `sudo docker exec -it some-nginx /bin/bash` Actual results: <no output> Expected results: start a bash session Additional info: `sudo docker exec -it some-nginx echo hello` also have no ouput. but `sudo docker exec some-nginx echo hello` get the output('hello').
Lokesh can you verify this bug?
I have this too - it's some kind of privilege / permissions issue. If you add '--privileged' to the 'docker run' command it works on my machine: # docker run -d docker.io/fedora:22 sleep infinity 4972ffef18962f5efea1d01788893434e49816c15168bc8749bca4e4e39c5a1a # docker exec -it 4972ffef18962f5efea1d01788893434e49816c15168bc8749bca4e4e39c5a1a /bin/bash goes to host root prompt, but # docker run -d --privileged docker.io/fedora:22 sleep infinity a571ab4f15fe1c05f03861e4995f364c2a080854b9aa66312075f3487aa9a798 # docker exec -it a571ab4f15fe1c05f03861e4995f364c2a080854b9aa66312075f3487aa9a798 /bin/bash gives me a prompt inside the container: [root@a571ab4f15fe /]#
This might be a duplicate of Bug 1226374
*** Bug 1226374 has been marked as a duplicate of this bug. ***
This should be fixed by an updated docker-selinux package in docker-1.6.2 *** This bug has been marked as a duplicate of bug 1221379 ***