Fix releasing reference on deletion error#20513
Fix releasing reference on deletion error#20513
Conversation
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
|
LGTM |
|
LGTM 🐰 |
|
I want to make sure @dmcgowan and/or @aaronlehmann can have a look before merging |
|
LGTM |
Fix releasing reference on deletion error
|
Does it mean that I can't do Will docker attempt to delete layer by itself once all references, but reacquired one by docker again is gone? |
|
@crwd-mivanov No, this should restore |
Fixes #20268
This retakes a reference to a mounted layer if the deletion failed on graphdriver level. This does not completely fix deletion of containers with busy mounts but should make sure that they can be deleted once they are manually unmounted. When deletion fails then things can still be left in unknown state.
ping @dmcgowan
Signed-off-by: Tonis Tiigi tonistiigi@gmail.com