Commit may fail when container write many small files (failed to create diff tar stream: failed to copy: archive/tar: write too long
)
#3791
Labels
bug
Something isn't working
Description
Currently we got an error occasionally in our product environment, when we commit a container to an image.
It's more likely to occur when writing a large number of small files in a container. I think this maybe related to buffer io, that the file content is changed during tar write it. There is a very low probability that the problem recurs.
Steps to reproduce the issue
Describe the results you received and expected
If this is related to the buffer io, I think maybe the only way to avoid this is to add a sleep after Pause so that kernel can flush all data into disk.
What version of nerdctl are you using?
nerdctl version 2.0.1-2-g1f812253
Are you using a variant of nerdctl? (e.g., Rancher Desktop)
None
Host information
No response
The text was updated successfully, but these errors were encountered: