Skip to content

docker cp should accept a file destination #4272

@proppy

Description

@proppy

Currently docker cp only accept path destination:

$ docker help cp

Usage: docker cp CONTAINER:PATH HOSTPATH

Copy files/folders from the PATH to the HOSTPATH

It would be useful if it was also accepting a single file destination when the source path point to a file, ex:

docker cp build-boot2docker:/boot2docker.iso boot2docker-$(git rev-parse HEAD).iso

Metadata

Metadata

Assignees

No one assigned

    Labels

    exp/beginnerkind/enhancementEnhancements are not bugs or new features but can improve usability or performance.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions