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

podman cp does not copy folders #2836

Closed
maflcko opened this issue Apr 2, 2019 · 4 comments · Fixed by #2845
Closed

podman cp does not copy folders #2836

maflcko opened this issue Apr 2, 2019 · 4 comments · Fixed by #2845
Assignees
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.

Comments

@maflcko
Copy link

maflcko commented Apr 2, 2019

/kind bug

Steps to reproduce the issue:

Compare podman and docker:

$ ls /tmp/new_folder_02/
$
$ podman cp /tmp/new_folder_02 sweet_hellman:/home/
$ podman exec sweet_hellman ls /home/
$
$ sudo docker cp /tmp/new_folder_02 elated_kalam:/home/
$ sudo docker exec elated_kalam ls /home/
new_folder_02
$

Output of podman version:

Version:            1.2.0
RemoteAPI Version:  1
Go Version:         go1.11.5
OS/Arch:            linux/amd64
@openshift-ci-robot openshift-ci-robot added the kind/bug Categorizes issue or PR as related to a bug. label Apr 2, 2019
@rhatdan
Copy link
Member

rhatdan commented Apr 3, 2019

@QiWang19 PTAL

@TomSweeneyRedHat
Copy link
Member

@MarcoFalke just to verify, are there any symlinks involved in this particular copy?

@maflcko
Copy link
Author

maflcko commented Apr 3, 2019

Not that I am aware of. I created the empty folder with mkdir /tmp/new_folder_02

@QiWang19
Copy link
Collaborator

QiWang19 commented Apr 3, 2019

podman cp copies the content under the folder into /home/. ls /home/ shows nothing because the /tmp/new_folder_02 is empty.
Yes, this is kind of a bug because it's different from docker

@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
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.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants