Skip to content

ctr:Container can't be removed after deleting it's snapshot #3448

@YLonely

Description

@YLonely

Description

Container can't be removed if snapshot is deleted first

Steps to reproduce the issue:

  1. Run a container and it stops properly
    image
  2. Remove its snapshot
  3. Try to remove this container : ctr c rm test

Describe the results you received:

image

Describe the results you expected:

container should be removed even if there is no snapshot

Output of containerd --version:

containerd github.com/containerd/containerd v1.2.0-636-g545e79ae.m 545e79a.m

Any other relevant information:

You can delete this container by adding "--keep-snapshot" flag, but it's kind of confusing

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions