If you have an add line in the Dockerfile which points to another directory, the build of the image fails with the message "Forbidden path".
Example:
FROM tatsuru/debian
ADD ../relative-add/some-file /tmp/some-file
Gives:
$ ../bundles/0.6.6-dev/binary/docker-0.6.6-dev build .
Uploading context 20480 bytes
Step 1 : FROM tatsuru/debian
---> 25368de90486
Step 2 : ADD ../relative-add/some-file /tmp/some-file
Error build: Forbidden path: /tmp/relative-add/some-file
I would expect the file to be written to /tmp/some-file, not /tmp/relative-add/some-file.
If you have an add line in the Dockerfile which points to another directory, the build of the image fails with the message "Forbidden path".
Example:
Gives:
I would expect the file to be written to
/tmp/some-file, not/tmp/relative-add/some-file.