-
Notifications
You must be signed in to change notification settings - Fork 18.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ADD does not support FTP URLs #9314
Comments
I've worked around this for now by adding a cron job to download from the FTP url and upload to an S3 bucket. Would still be interested in a fix but it's not a high priority. Close if you have better things to do. ;) |
I'm in need of the same thing here, I need to access an ftp server, that requires me to inform anonymous as user. So |
I think the core team is planning to deprecate / phase out Perhaps, as an alternative, use curl to download the file? Something like;
|
I would prefer not to use curl for the reasons I mentioned above. I want to invalidate the cache if the file contents change. For that reason I really like the ADD directive and would not want to see it go away. It does exactly what I want it to do (except handle ftp URLs). I can work around the ftp issue using the method mentioned above but without ADD there will be no way to break the cache without changing the Dockerfile, so I would implore you to keep some way of doing that. Thanks. On November 27, 2014 12:53:25 PM PST, Sebastiaan van Stijn [email protected] wrote:
|
USER POLL The best way to get notified of updates is to use the Subscribe button on this page. Please don't use "+1" or "I have this too" comments on issues. We automatically The people listed below have upvoted this issue by leaving a +1 comment: |
We haven't seen more requests for this, so I'm closing this as it's not a priority |
+1 Need support for FTP and sambashare |
+1 |
1 similar comment
+1 |
Hey @thaJeztah, are we supposed to make additional requests to re-open this issue by adding comments? Or is subscribing to this page as @GordonTheTurtle suggests enough? Either way, +1. |
@ahwagner it would help if you could describe your use case; t.b.h., we're in doubt if we want to add more complexity to |
Also most providers are in the process of phasing out anonymous FTP support.
On 27 Feb 2017 13:30, "Sebastiaan van Stijn" <[email protected]> wrote:
@ahwagner <https://github.com/ahwagner> it would help if you could describe
your use case; t.b.h., we're in doubt if we want to add more complexity to
ADD, there's already a lot of things it does. Adding support for ftp would
probably require implementing a whole ftp client (what about sftp, etc etc)
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#9314 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AAdcPCRvj36GPaTaPEQr2PO2K7VH5JPhks5rg0BdgaJpZM4DAAl7>
.
|
Take the relevant parts of the toolchain build script from [1] and put them into a Dockerfile. Work around Docker issue #9314 [2] by fetching the newlib archive via `curl` instead of using the ADD instruction. Add gdb dependencies expat-dev, ncurses-dev, python-dev and xz-dev. [1] https://github.com/istarc/stm32/blob/master/build-ARM-toolchain/build.sh [2] moby/moby#9314
@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. |
If it's at deploy time, adding support for ftp to |
I was trying to download a file with FTP using Also, some images, like Ubuntu:16.04 (the one I'm using), do not have cURL installed. So, instead of just adding one file to Docker's ADD http-file-01 \
http-file-02 \
...
ftp-file \
...
<path> I'd have to add one more Docker command, adding one more layer to the image, and increasing the size of the image for installing cURL: RUN apt-get update \
&& apt-get install curl \
&& curl -u user:password 'ftp://host/file' -o myfile +1 for FTP support. |
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:
And when I attempt to build it, I get:
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.The text was updated successfully, but these errors were encountered: