From e93b7b464733470a08a46b9937678fbfdff0abb0 Mon Sep 17 00:00:00 2001 From: Sven Dowideit Date: Sun, 29 Dec 2013 21:27:59 +1000 Subject: [PATCH] add a simple note to suggest to the user to use RUN curl/wget/tool if the URL they need is behind auth --- docs/sources/use/builder.rst | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/docs/sources/use/builder.rst b/docs/sources/use/builder.rst index 10140313a8..81145a6ee8 100644 --- a/docs/sources/use/builder.rst +++ b/docs/sources/use/builder.rst @@ -251,6 +251,11 @@ All new files and directories are created with mode 0755, uid and gid if you build using STDIN (``docker build - < somefile``), there is no build context, so the Dockerfile can only contain an URL based ADD statement. +.. note:: + if your URL files are protected using authentication, you will need to use + an ``RUN wget`` , ``RUN curl`` or other tool from within the container as + ADD does not support authentication. + The copy obeys the following rules: * The ```` path must be inside the *context* of the build; you cannot