1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00
moby--moby/pkg/archive
Brian Goff ef98fe0763 Make container.Copy support volumes
Fixes #1992

Right now when you `docker cp` a path which is in a volume, the cp
itself works, however you end up getting files that are in the
container's fs rather than the files in the volume (which is not in the
container's fs).
This makes it so when you `docker cp` a path that is in a volume it
follows the volume to the real path on the host.

archive.go has been modified so that when you do `docker cp mydata:/foo
.`, and /foo is the volume, the outputed folder is called "foo" instead
of the volume ID (because we are telling it to tar up
`/var/lib/docker/vfs/dir/<some id>` and not "foo", but the user would be
expecting "foo", not the ID

Signed-off-by: Brian Goff <cpuguy83@gmail.com>
2014-10-20 20:23:01 -04:00
..
testdata Move archive package into pkg/archive 2014-09-29 23:23:36 -07:00
archive.go Make container.Copy support volumes 2014-10-20 20:23:01 -04:00
archive_test.go Move archive package into pkg/archive 2014-09-29 23:23:36 -07:00
changes.go Move archive package into pkg/archive 2014-09-29 23:23:36 -07:00
changes_test.go Move archive package into pkg/archive 2014-09-29 23:23:36 -07:00
diff.go Move archive package into pkg/archive 2014-09-29 23:23:36 -07:00
MAINTAINERS Move archive package into pkg/archive 2014-09-29 23:23:36 -07:00
README.md Move archive package into pkg/archive 2014-09-29 23:23:36 -07:00
time_linux.go Move archive package into pkg/archive 2014-09-29 23:23:36 -07:00
time_unsupported.go Move archive package into pkg/archive 2014-09-29 23:23:36 -07:00
wrap.go Move archive package into pkg/archive 2014-09-29 23:23:36 -07:00

This code provides helper functions for dealing with archive files.