moby: ADD does not support FTP URLs

Hi,

I would like to use the ADD command in a Dockerfile with an FTP url, but it doesn’t appear to work.

My Dockerfile has this line in it:

ADD ftp://ftp.stat.math.ethz.ch/Software/R/R-devel.tar.gz /tmp/R-source/

And when I attempt to build it, I get:

Step 5 : ADD ftp://ftp.stat.math.ethz.ch/Software/R/R-devel.tar.gz /tmp/R-source/

2014/11/24 10:49:46 ftp://ftp.stat.math.ethz.ch/Software/R/R-devel.tar.gz: no such file or directory

Unfortunately, the tarball I am trying to download is not available at an HTTP url. Can ADD be modified to support FTP URLs?

I am aware that I could use RUN curl... to download from this URL, but I want the behavior of ADD which checks to see if the URL contents have changed and invalidates the cache if they have.

About this issue

  • Original URL
  • State: closed
  • Created 10 years ago
  • Comments: 16 (6 by maintainers)

Commits related to this issue

Most upvoted comments

@thaJeztah while I can not speak for others, but my primary desire for this feature is rooted in the ability to pull public scientific data into Docker containers at deploy-time. Much of it is stored in public FTP servers which have not/will not be updated to another storage scheme in the foreseeable future.

Example: https://www.ncbi.nlm.nih.gov/books/NBK158899/