Skip to content
This repository has been archived by the owner on Apr 25, 2023. It is now read-only.

COPY/ADD does not copy symlinks #60

Closed
ctrlok opened this issue Jan 23, 2016 · 3 comments
Closed

COPY/ADD does not copy symlinks #60

ctrlok opened this issue Jan 23, 2016 · 3 comments
Labels
Milestone

Comments

@ctrlok
Copy link
Contributor

ctrlok commented Jan 23, 2016

>>>  ls -al
-rw-r--r--  1 me  staff    0 Jan 23 12:14 1
lrwxr-xr-x  1 me  staff    1 Jan 23 12:14 2 -> 1
-rw-r--r--  1 me  staff   41 Jan 23 12:15 Rockerfile
>>> rocker build --no-cache
...
INFO[0000] RUN ls /dir
INFO[0000] | Created container 86ee80a7755d (image 21333008ea93)
INFO[0000] 1                                             container=86ee80a7755d
INFO[0000] Rockerfile                                    container=86ee80a7755d

BTW, it works in docker.

@ybogdanov
Copy link
Contributor

Provide a full Rockerfile please.

@ctrlok
Copy link
Contributor Author

ctrlok commented Jan 23, 2016

FROM ubuntu:14.04
ADD . /dir
RUN ls /dir

@ctrlok
Copy link
Contributor Author

ctrlok commented Jan 23, 2016

ALSO, results in docker

Sending build context to Docker daemon 3.072 kB
Step 1 : FROM ubuntu:14.04
 ---> 6cc0fc2a5ee3
Step 2 : ADD . /dir
 ---> 9dfb760338ea
Removing intermediate container d8b120298ea2
Step 3 : RUN ls /dir
 ---> Running in 272aef4b008b
1
2
Rockerfile
 ---> 95d6ca5a2ce5
Removing intermediate container 272aef4b008b
Successfully built 95d6ca5a2ce5

@ybogdanov ybogdanov added the bug label Jan 29, 2016
@ybogdanov ybogdanov added this to the 1.1.0 milestone Jan 29, 2016
@ybogdanov ybogdanov changed the title Fail to add project with symbolic links COPY/ADD does not copy symlinks Jan 29, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants