https://bugzilla.redhat.com/show_bug.cgi?id=1216265
Bug ID: 1216265 Summary: docker exec -it bash cannot start a shell session Product: Fedora Version: 22 Component: docker-io Severity: high Assignee: ichavero@redhat.com Reporter: robberphex@gmail.com QA Contact: extras-qa@fedoraproject.org CC: adimania@gmail.com, admiller@redhat.com, golang@lists.fedoraproject.org, hushan.jia@gmail.com, ichavero@redhat.com, jchaloup@redhat.com, jperrin@centos.org, lsm5@redhat.com, mattdm@redhat.com, mgoldman@redhat.com, miminar@redhat.com, s@shk.io, thrcka@redhat.com, vbatts@redhat.com
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').
https://bugzilla.redhat.com/show_bug.cgi?id=1216265
Lokesh Mandvekar lsm5@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |dwalsh@redhat.com, | |jcajka@redhat.com Component|docker-io |docker Assignee|ichavero@redhat.com |lsm5@redhat.com
https://bugzilla.redhat.com/show_bug.cgi?id=1216265
--- Comment #1 from Daniel Walsh dwalsh@redhat.com --- Lokesh can you verify this bug?
https://bugzilla.redhat.com/show_bug.cgi?id=1216265
M. Edward (Ed) Borasky znmeb@znmeb.net changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |znmeb@znmeb.net
--- Comment #2 from M. Edward (Ed) Borasky znmeb@znmeb.net --- 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 /]#
https://bugzilla.redhat.com/show_bug.cgi?id=1216265
--- Comment #3 from M. Edward (Ed) Borasky znmeb@znmeb.net --- This might be a duplicate of Bug 1226374
https://bugzilla.redhat.com/show_bug.cgi?id=1216265
Daniel Walsh dwalsh@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |stefw@redhat.com
--- Comment #4 from Daniel Walsh dwalsh@redhat.com --- *** Bug 1226374 has been marked as a duplicate of this bug. ***
https://bugzilla.redhat.com/show_bug.cgi?id=1216265
Daniel Walsh dwalsh@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED
https://bugzilla.redhat.com/show_bug.cgi?id=1216265
Daniel Walsh dwalsh@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |CLOSED Resolution|--- |DUPLICATE Last Closed| |2015-06-02 14:17:17
--- Comment #5 from Daniel Walsh dwalsh@redhat.com --- 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 ***
golang@lists.fedoraproject.org