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

ADD command does not follow file directory structure when copying current directory #18396

Closed
jtoy opened this issue Dec 3, 2015 · 2 comments

Comments

@jtoy
Copy link

jtoy commented Dec 3, 2015

docker -v
Docker version 1.9.1, build a34a1d5
on mac:
docker-machine -v
docker-machine version 0.5.1 (7e8e38e)

uname -a
Darwin MacBook-Pro.local 14.1.0 Darwin Kernel Version 14.1.0: Mon Dec 22 23:10:38 PST 2014; root:xnu-2782.10.72~2/RELEASE_X86_64 x86_64

when running:
ADD * /home/ubuntu/experiment/

I also tried with:
ADD ./* /home/ubuntu/experiment/

if the current directory has:
folder1/file1
folder1file2
file3

the docker container will create:
/home/ubuntu/experiment/folder1
/home/ubuntu/experiment/file1
/home/ubuntu/experiment/file2
/home/ubuntu/experiment/file3

instead of (expected results):
/home/ubuntu/experiment/folder1
/home/ubuntu/experiment/folder1/file1
/home/ubuntu/experiment/folder/1file2
/home/ubuntu/experiment/file3

@jtoy jtoy changed the title ADD command does not create directories when copying current directory ADD command does not follow file directory structure when copying current directory Dec 3, 2015
@thaJeztah
Copy link
Member

Thanks for reporting @jtoy, this looks like a duplicate of #15858, and that issue contains an explanation (and the reason we cannot fix it without breaking backwards compatibility).

If you agree this is a duplicate, could you close this issue?

@LK4D4
Copy link
Contributor

LK4D4 commented Sep 14, 2016

Closing this for lack of activity. Feel free to open new!

@LK4D4 LK4D4 closed this as completed Sep 14, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants