https://bugzilla.redhat.com/show_bug.cgi?id=1204620
Bug ID: 1204620 Summary: container stays around wihtout any processes in it Product: Fedora Version: 22 Component: docker-io Assignee: lsm5@redhat.com Reporter: mvollmer@redhat.com QA Contact: extras-qa@fedoraproject.org CC: adimania@gmail.com, admiller@redhat.com, golang@lists.fedoraproject.org, hushan.jia@gmail.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
Created attachment 1005245 --> https://bugzilla.redhat.com/attachment.cgi?id=1005245&action=edit Setup script for reproducing
Description of problem:
When running a specific custom image (see attachement), docker fails to notice when the single process exits. The container stays around, and attempts to stop or remove it result in errors.
Doing the same with a slightly older version of docker shows expected behavior.
Version-Release number of selected component (if applicable): docker-io-1.5.0-19.git5d7adce.fc22.x86_64
How reproducible: Always.
Steps to Reproduce: 1. Run the attached SETUP script in an empty directory 2. Run the resulting image # docker run --name=probe cp /bin/container-probe 3. After wrestling control back from the hanging "docker run", try to stop or remove the container. # docker stop probe # docker rm -f probe
Actual results:
The expected output of container-probe is shown, but "docker run ..." does not return to the command line prompt. In fact, job control doesn't work anymore either (C-c, C-z, C-).
Stopping and removing leads to these errors:
# docker stop probe Error response from daemon: Cannot stop container probe: active container for c492b7203b3d465c778935f97a12b3bf8a4c442731c7fd25cee6f50798ac4f65 does not exist FATA[0000] Error: failed to stop one or more containers
# docker rm -f probe Error response from daemon: Could not kill running container, cannot remove - active container for c492b7203b3d465c778935f97a12b3bf8a4c442731c7fd25cee6f50798ac4f65 does not exist FATA[0000] Error: failed to remove one or more containers
Expected results: The output is shown and "docker run" terminates successfully, the container is show as "exited" and can be removed.
Additional info: docker-io-1.5.0-1.fc21.x86_64 shows the expected behavior.
"docker run -i" return control to the shell, but the resulting container can't be stopped or removed either.
"systemctl restart docker" puts the "probe" container into a state where it can be removed.
https://bugzilla.redhat.com/show_bug.cgi?id=1204620
Marius Vollmer mvollmer@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|container stays around |container stays around |wihtout any processes in it |without any processes in it
https://bugzilla.redhat.com/show_bug.cgi?id=1204620
--- Comment #1 from Marius Vollmer mvollmer@redhat.com --- Replacing "FROM scratch" with "FROM busybox" shows the same behavior.
https://bugzilla.redhat.com/show_bug.cgi?id=1204620
Marius Vollmer mvollmer@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Blocks| |1204627
Referenced Bugs:
https://bugzilla.redhat.com/show_bug.cgi?id=1204627 [Bug 1204627] Tracker: Cockpit test suite broken on Fedora 22
https://bugzilla.redhat.com/show_bug.cgi?id=1204620
Fedora Admin XMLRPC Client fedora-admin-xmlrpc@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Assignee|lsm5@redhat.com |extras-orphan@fedoraproject | |.org
--- Comment #2 from Fedora Admin XMLRPC Client fedora-admin-xmlrpc@redhat.com --- This package has changed ownership in the Fedora Package Database. Reassigning to the new owner of this component.
https://bugzilla.redhat.com/show_bug.cgi?id=1204620
Lokesh Mandvekar lsm5@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |ichavero@redhat.com Component|docker-io |docker Assignee|extras-orphan@fedoraproject |lsm5@redhat.com |.org |
https://bugzilla.redhat.com/show_bug.cgi?id=1204620
Daniel Walsh dwalsh@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |MODIFIED CC| |dwalsh@redhat.com
--- Comment #3 from Daniel Walsh dwalsh@redhat.com --- This is working fine for me with docker-1.6
So I will mark this as modified.
https://bugzilla.redhat.com/show_bug.cgi?id=1204620
--- Comment #4 from Marius Vollmer mvollmer@redhat.com --- (In reply to Daniel Walsh from comment #3)
This is working fine for me with docker-1.6
Yes, our tests are passing again with docker 1.6.
We have changed the tests to avoid a statically linked binary, so this is no sure indication that the original bug has been fixed, but we are happy in any case.
https://bugzilla.redhat.com/show_bug.cgi?id=1204620
Lokesh Mandvekar lsm5@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|MODIFIED |CLOSED Resolution|--- |CURRENTRELEASE Last Closed| |2016-02-16 15:10:09
--- Comment #5 from Lokesh Mandvekar lsm5@redhat.com --- Closing this, as the latest stable is 1.9. Marius, please re-open if you see this issue at all with newer versions.
https://bugzilla.redhat.com/show_bug.cgi?id=1204620
--- Comment #6 from Marius Vollmer mvollmer@redhat.com ---
Closing this, as the latest stable is 1.9. Marius, please re-open if you see this issue at all with newer versions.
I trust that there is now a regression test for this in Docker. :-)
golang@lists.fedoraproject.org