Skip to content

allow docker cp to accept several different folders #37961

Open

Description

@dreyks

Feature request

Description

Would be nice if docker cp allowed specifying several files/folders in SRC_PATH.
My use case: I want to copy both tmp/cache and public/assets from an image, then package it to tar. If docker cp supported multiple arguments i could just use - as DEST_PATH and omit the taring altogether.

The command could look similar to how scp works: docker cp container_name:/first/path container_name:/second/path target_path

Activity

  1. changed the title [-]docker cp to allow several different folders[/-] [+]allow docker cp to accept several different folders[/+] on Oct 3, 2018
  2. SmilingNavern commented on Oct 3, 2018

    @SmilingNavern

    I would like to try to implement this feature

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions