-
Notifications
You must be signed in to change notification settings - Fork 239
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
Extracting layer fails when container is running #155
Comments
- workaround for microsoft/hcsshim#155 - this is safe because garden + diego have not started yet, and garden runs with destroy_containers_on_start set to true. So all containers currently running are going to be killed soon anyways [#153616126] Signed-off-by: Sam Smith <sesmith177@gmail.com>
- workaround for microsoft/hcsshim#155 - this is safe because garden + diego have not started yet, and garden runs with destroy_containers_on_start set to true. So all containers currently running are going to be killed soon anyways [#153616126] Signed-off-by: Sunjay Bhatia <sbhatia@pivotal.io>
Thanks for the report. It looks to me like this is a platform bug in the layer apply when removing a file that is in the parent. I have a repro, and I am investigating. |
Thanks @darrenstahlmsft, let us know if you need any more information from our environment |
@darrenstahlmsft any updates on this? |
We understand the issue here. It is a combination of a bug preventing deletion of hard links in some cases and a performance optimization that creates hard links that trigger the above bug. We're working on a platform fix to allow the deletion of hard links in this case, but in the mean time, I am looking into a mitigation for hcsshim that can prevent creating the hard links if they are not needed (so we don't have to delete any hard links during layer extraction). I'll have more info or a fix either this week or next. |
I've submitted #160 to fix this |
sweet, thanks @darrenstahlmsft |
See moby/moby#36092 (comment). Fixed in #167 |
When:
Then extracting the first new layer (layer D in this example) will fail.
To reproduce, run in one terminal:
and then in a second terminal, pull a new version of the container image:
From
docker info
:The text was updated successfully, but these errors were encountered: