Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RFE Add --extract option to podman cp commands #2520

Closed
TomSweeneyRedHat opened this issue Mar 4, 2019 · 2 comments · Fixed by #2532
Closed

RFE Add --extract option to podman cp commands #2520

TomSweeneyRedHat opened this issue Mar 4, 2019 · 2 comments · Fixed by #2532
Assignees
Labels
locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments.

Comments

@TomSweeneyRedHat
Copy link
Member

Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)

kind feature

Description
This is a request for added functionality. In #2517 we stopped the ability to extract a tar file during a podman cp command. That's the right thing to do for a straight cp. However I'd like to see a podman cp --extract my.tar /mydir option added such that if a tar file was being copied to the container, then it would be extracted there too. Kind of a one stop shopping thing.

The old code around line 273 in that PR would have to be reinstated under an if c.extract() type of statement.

I'd suggest that if a destination argument was not given, the file would be extracted in the container's root directory, otherwise in the Destination directory given as an argument, making that directory first if it was not present.

I've suggested --extract as the option name, but I'm not married to that. IDK if Docker does something similar, if they do we may want to emulate that instead.

@TomSweeneyRedHat
Copy link
Member Author

@QiWang19 FYI

@QiWang19
Copy link
Collaborator

QiWang19 commented Mar 4, 2019

👌

@QiWang19 QiWang19 self-assigned this Mar 4, 2019
@github-actions github-actions bot added the locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments. label Sep 24, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 24, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants