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
Docker export creates a tar archive with a lot of files in the filesystem root #29360
Comments
ping @dmcgowan PTAL |
Yikes, there is definitely something weird going on here. Going to write some more tests around this to see if I can figure out what is going on. It does seem to effect files in the node_modules directory, wonder if the Here is an example of one of the files
|
Thanks for an excellent bug-report @wieslaw-gat; having all the information and the reproduce case ready is really helpful ❤️ |
Looks like it is a bug related to path length in the tar inside container
in tar
|
Looks like this hit golang/go#17630 We will test this with go 1.8 to see if it is addressed Looks like importing it back into Docker works fine, but when using |
@dmcgowan Any updates? Do you have any idea how to work around this? |
Trying to link the right issues, but it may be that a full fix was pushed back to Go 1.10 golang/go#12594 |
Description
I'm currently working on creating a docker image for a nodejs application to use with Concourse CI. The image creates fine, works also okay, but when doing a
docker export
the resulting tar archive has the file system structure completely bonkers, with a ton of files in the archive root.Steps to reproduce the issue:
docker build .
The image builds fine.docker run
to run the resulting image. The container starts fine.docker export {CONTAINER_ID} | tar xf -
. The operation succeeds.Describe the results you received:
Listing the directory to which the tar archive was extracted looks like this:
(the directory was previously empty of course)
Describe the results you expected:
I'd expect the usual files in the root directory of the exported container - the same as
ls
shows in the point #4 in the steps to reproduce section. Something like this:Additional information you deem important (e.g. issue happens only occasionally):
I'm opening this issue because I've run out of the skills needed to debug it further.
The issue happens regardless of the version of
node
andyarn
used. I've also encountered this problem when using npm instead ofyarn
.I don't think it's a
yarn
/npm
issue, since the files are properly placed in the running container. Looks like this problem affects only the exported archive.Also, this issue happens regardless of the image used. I've also tried my luck with Ubuntu & Alpine images - the same problem persists.
Output of
docker version
:Output of
docker info
:Additional environment details (AWS, VirtualBox, physical, etc.):
Happens on both physical machines & in AWS.
The text was updated successfully, but these errors were encountered: