Skip to content
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

layers.Wipe(): try to remove layers before their parents #1342

Merged
merged 1 commit into from
Sep 14, 2022

Commits on Sep 14, 2022

  1. layers.Wipe(): try to remove layers before their parents

    When removing layers, try to remove layers before removing their
    parents, as the lower-level driver may enforce the dependency beyond
    what the higher-level logic does or knows.
    
    Do this by sorting by creation time as an attempt at flattening the
    layer tree into an ordered list.  It won't be correct if a parent layer
    needed to be recreated, but it's more likely to be correct otherwise.
    
    Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
    nalind committed Sep 14, 2022
    Configuration menu
    Copy the full SHA
    627c202 View commit details
    Browse the repository at this point in the history