-
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
File disappears after extracting with ADD #15799
Comments
Hi! Please read this important information about creating issues. If you are reporting a new issue, make sure that we do not have any duplicates already open. You can ensure this by searching the issue list for this repository. If there is a duplicate, please close your issue and add a comment to the existing issue instead. If you suspect your issue is a bug, please edit your issue description to include the BUG REPORT INFORMATION shown below. If you fail to provide this information within 7 days, we cannot debug your issue and will close it. We will, however, reopen it if you later provide the information. This is an automated, informational response. Thank you. For more information about reporting issues, see https://github.com/docker/docker/blob/master/CONTRIBUTING.md#reporting-other-issues BUG REPORT INFORMATIONUse the commands below to provide key information from your environment:
Provide additional environment details (AWS, VirtualBox, physical, etc.): List the steps to reproduce the issue: Describe the results you received: Describe the results you expected: Provide additional info you think is important: ----------END REPORT --------- #ENEEDMOREINFO |
Can you provide information about these two files? How the tar was created? etc? |
Thank you for the quick reply! I have managed to create a public dummy Elixir application which reproduces the problem. You can find it here: https://github.com/jordi-chacon/dummy_phoenix_app You will need to install Elixir (and Erlang) to create the binary. In case you don't want to do that, I have also added a binary ( To reproduce the problem, simply run The tar is created by exrm, a release manager library for Elixir which I merely use to pack my application. I will let the owner of that library know about this issue, hopefully he will add his input here. Thank you for your help. |
@cpuguy83 I can provide more information on the tar file. It is created using Erlang's standard library
|
Due to change in behavior in Docker 0.x-something anno 2014, the ADD command is still causing confusion. I think that it is the documentation that is wrong, since it only makes sense for the command to do the same post-copy processing on both local and remote files. This paragraph in https://docs.docker.com/engine/reference/builder/#add:
should be corrected to read:
That would enable us to close roughly 20 tickets spanning docker and moby projects all concerning the same issue ;) |
@cbrunnkvist extraction of remote archives is a bug in 17.06.0, and will be fixed in 17.06.1; see the release notes; https://github.com/docker/docker-ce/releases/tag/v17.06.0-ce
see #33849 and #33851 for the fix The problem discussed in this issue could possibly be related to a bug in Go that got fixed recently |
closing as this one went stale |
Hi,
I have a tar.gz file containing a bunch of Erlang binaries that make up my application binary. I also have a Dockerfile which, among other things, does
ADD binary.tar.gz /service/
. This is supposed to extract the contents of the tar.gz inside the /service directory. After extraction, 2 out 1269 files are missing.Just for double checking, I have edited my Dockerfile to do the following
After building the image, I launch a container running it, and manually decompress the tar.gz in /service2 with
tar -xf binary.tar.gz
.Then I run
diff --brief -r /service1 /service2
which tells me that /service2 contains two files that do not exist in /service1. These files are regular files, not symlinks.I would love to send you the tar.gz for you to test it yourself but it is not public.
Jordi
The text was updated successfully, but these errors were encountered: