免責聲明

Disclaimer (免責聲明)
繼續閱覽代表您接受以上的免責聲明.
To continue reading means you accept the above disclaimer.

2015年3月13日 星期五

Dockerfile, COPY or ADD ?


//=== https://docs.docker.com/articles/dockerfile_best-practices
# Dockerfile
COPY local_files container_folder


"""...
Although ADD and COPY are functionally similar, generally speaking,
COPY is preferred. ...
COPY only supports the basic copying of local files into the container,

...
Because image size matters, using ADD to fetch packages from remote URLs is strongly discouraged;
you should use curl or wget instead. That way you can delete the files you no longer need ...

..."""




//=== http://stackoverflow.com/questions/24958140/docker-copy-vs-add

ADD === COPY + ( tar and remote url handling )




沒有留言:

張貼留言