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
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
The text was updated successfully, but these errors were encountered:
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
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?
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
The text was updated successfully, but these errors were encountered: