-
Notifications
You must be signed in to change notification settings - Fork 18.6k
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
Behaviour of ADD for remote tar balls changed with 17.06 #33849
Comments
cc @tonistiigi |
Ah! I noticed and utilized this behavior -- it was a welcomed addition for me 😞 . Saved me from having to do the whole |
@ph-One sorry for that 😅 |
Just noticed this behavior today and like @ph-One, I really like it, even though it broke all my You should really consider to keep this feature but in a backward compatible way. What about |
looks to be broken again in 17.09.0-ce
outputs
|
@chrisdlangton you're describing the correct behavior; remote tar balls should not be extracted (which is what your example is showing) |
I actually find the "wget && tar" (ex-)feature of ADD quite useful. For what reason is it not kept, or available as an option (like @tomc974 mentioned)? I just read in the doc with disappointment that it should actually not be extracted. My usecase is the following: a very big dir needs to be added to the image and I'd like the user building the image to be able to choose between downloading the big tar or using his local tar within the context... (inconvenience of the URL if low bandwidth etc...)
|
It looks like the behaviour of
ADD
with remote URLs changed with 17.06 onwards (also in DfM 17.07.0-rc1-ce-mac18) and is inconsistent with the documentation.Here is a small example:
using:
With version earlier than 17.06 you see the documented behaviour:
ie the remote URL is simply downloaded and not upacked.
Starting with 17.06 (I'm using
17.06.0-ce-rc5-mac16
or the latest edge release), I get:So here the tar ball has been unpacked into a directory.
The text was updated successfully, but these errors were encountered: