You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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 apodman 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.The text was updated successfully, but these errors were encountered: