podman cp container:dir_path/. existing_dir/ not working as expected #4717
Labels
kind/bug
Categorizes issue or PR as related to a bug.
locked - please file new issue/PR
Assist humans wanting to comment on an old issue or PR with locked comments.
/kind bug
Description
The docker docs https://docs.docker.com/engine/reference/commandline/cp/ say that when copying and the SRC_PATH ends with "/." and the DEST_PATH is a directory that it will copy the contents of SRC_PATH to DEST_PATH.
Podman is copying the SRC_PATH to DEST_PATH and not the contents of SRC_PATH.
For example I do:
Which is not working as the 'docker cp' documentation says it should be. It should copy the "contents" of the /root/ directory and not the directory (including the directory name).
Output of
podman version
:Output of
podman info --debug
:Package info (e.g. output of
rpm -q podman
orapt list podman
):The text was updated successfully, but these errors were encountered: