Skip to content

meta.json is not removed when the container process exits #1829

@fahedouch

Description

@fahedouch

Description

container Poststop hook is not triggered when container exists: meta.json is not removed when the container process exits.

Steps to reproduce the issue

  1. nerdctl run --name toto alpine
  2. nerdctl kill toto
  3. /var/lib/nerdctl/<ADDRHASH>/etchosts/default/<ID>/meta.json is still present

Describe the results you received and expected

/var/lib/nerdctl/<ADDRHASH>/etchosts/<NS>/<ID>/meta.json should be removed when container with id ID exists

What version of nerdctl are you using?

latest

Are you using a variant of nerdctl? (e.g., Rancher Desktop)

None

Host information

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions