https://bugzilla.redhat.com/show_bug.cgi?id=1218599
Bug ID: 1218599 Summary: docker can no longer copy from inside the container Product: Fedora Version: 21 Component: docker-io Assignee: ichavero@redhat.com Reporter: nmavrogi@redhat.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
Created attachment 1022155 --> https://bugzilla.redhat.com/attachment.cgi?id=1022155&action=edit dockerfile reproducer
Description of problem: After upgrading docker I can no longer cp from inside a container. I upgraded to docker-io-1.6.0-4.git350a636.fc21.x86_64 and tried docker-io-1.6.0-4.git350a636.fc21.x86_64 as well. Both fail.
This is a regression in F21. That worked fine with 1.3.2
How reproducible: Outside the container use: docker cp my_container:/tmp/file-created-in-the-container ./tmp/ FATA[0000] Error response from daemon: Could not find the file ...
Using ssh I can verify that the files exist
Steps to Reproduce: 0. Copy the attached dockerfile into docker-dir 1. sudo docker build -t test-image docker-dir 2. sudo docker run -P --privileged=true --name xxx-name test-image 3. sudo docker cp xxx-name:/tmp/xxx /tmp/
Actual results: With 1.3.2: nothing. The file is copied.
With 1.6.0: FATA[0000] Error response from daemon: Could not find the file /tmp/xxx in container xxx-name
Expected results: The file should have been copied.
https://bugzilla.redhat.com/show_bug.cgi?id=1218599
--- Comment #1 from Nikos Mavrogiannopoulos nmavrogi@redhat.com --- This is quite important to me as I base my test suite on F21 and docker, and updating docker completely breaks my test suite.
https://bugzilla.redhat.com/show_bug.cgi?id=1218599
Daniel Walsh dwalsh@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED CC| |dwalsh@redhat.com Assignee|ichavero@redhat.com |lsm5@redhat.com
--- Comment #2 from Daniel Walsh dwalsh@redhat.com --- Should be fixed in docker-1.6.2.
We had made a change to mount the /tmp directory by default as a tmpfs, which we are changing back to the default, which should allow this behavior to work again.
We are working on a new command atomic mount which will expose the entire image to the host, and would allow you do do much more with host commands like cp, rsync ...
https://bugzilla.redhat.com/show_bug.cgi?id=1218599
Daniel Walsh dwalsh@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |CLOSED Resolution|--- |CURRENTRELEASE Last Closed| |2015-08-20 23:25:53
golang@lists.fedoraproject.org