docker cp
for copying image files to file system (not running container)
#34592
Labels
kind/feature
Functionality or other elements that the project doesn't currently have. Features are new and shiny
It would be great if we could copy a file from an image to the local filesystem in the same way that we can copy to/from a running container.
Eg.
I'm not sure what the best syntax would be for referencing the container (since it would need to handle
/
's, which might be confused with filesystem) Perhaps even just a--fromContainer
type flag would be sufficient?I know that it can currently by done by making a temporary container, but that doesn't work well for super-minimal images (eg.
FROM scratch
)Currently it can be worked around by doing something like this, though it's obviously less than ideal:
The text was updated successfully, but these errors were encountered: