From a1ddf57216e510c5cabe40cac6a00ac57a92b8d7 Mon Sep 17 00:00:00 2001 From: James Turnbull Date: Wed, 9 Jul 2014 17:13:26 -0400 Subject: [PATCH] Replaced selected docs references to ADD with COPY Docker-DCO-1.1-Signed-off-by: James Turnbull (github: jamtur01) --- docs/sources/articles/baseimages.md | 2 +- docs/sources/articles/using_supervisord.md | 2 +- docs/sources/examples/nodejs_web_app.md | 6 +++--- docs/sources/examples/running_riak_service.md | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/sources/articles/baseimages.md b/docs/sources/articles/baseimages.md index c795b7a0a7..d2adf62a12 100644 --- a/docs/sources/articles/baseimages.md +++ b/docs/sources/articles/baseimages.md @@ -52,7 +52,7 @@ which you can `docker pull`. You can then use that image to base your new minimal containers `FROM`: FROM scratch - ADD true-asm /true + COPY true-asm /true CMD ["/true"] The Dockerfile above is from extremely minimal image - [tianon/true]( diff --git a/docs/sources/articles/using_supervisord.md b/docs/sources/articles/using_supervisord.md index 91b8976d78..9188265199 100644 --- a/docs/sources/articles/using_supervisord.md +++ b/docs/sources/articles/using_supervisord.md @@ -52,7 +52,7 @@ Now let's add a configuration file for Supervisor. The default file is called `supervisord.conf` and is located in `/etc/supervisor/conf.d/`. - ADD supervisord.conf /etc/supervisor/conf.d/supervisord.conf + COPY supervisord.conf /etc/supervisor/conf.d/supervisord.conf Let's see what is inside our `supervisord.conf` file. diff --git a/docs/sources/examples/nodejs_web_app.md b/docs/sources/examples/nodejs_web_app.md index a7b8eea7e3..ad99c9bf84 100644 --- a/docs/sources/examples/nodejs_web_app.md +++ b/docs/sources/examples/nodejs_web_app.md @@ -84,11 +84,11 @@ via-package-manager#rhelcentosscientific-linux-6): # Install Node.js and npm RUN yum install -y npm -To bundle your app's source code inside the Docker image, use the `ADD` +To bundle your app's source code inside the Docker image, use the `COPY` instruction: # Bundle app source - ADD . /src + COPY . /src Install your app dependencies using the `npm` binary: @@ -117,7 +117,7 @@ Your `Dockerfile` should now look like this: RUN yum install -y npm # Bundle app source - ADD . /src + COPY . /src # Install app dependencies RUN cd /src; npm install diff --git a/docs/sources/examples/running_riak_service.md b/docs/sources/examples/running_riak_service.md index 59dba00639..6a81180320 100644 --- a/docs/sources/examples/running_riak_service.md +++ b/docs/sources/examples/running_riak_service.md @@ -53,7 +53,7 @@ After that, we install and setup a few dependencies: RUN locale-gen en_US en_US.UTF-8 - ADD supervisord.conf /etc/supervisor/conf.d/supervisord.conf + COPY supervisord.conf /etc/supervisor/conf.d/supervisord.conf RUN echo 'root:basho' | chpasswd