containerd / containerd/nerdctl

meta.json is not removed when the container process exits

Open
#1,829 5 comments 0 reactions 0 assignees View on GitHub
enhancement expert priority/low
Dominant language
Go
Stars
10.4k
Forks
826
Avg merge
1d 23h
Merged PRs (30d)
44

Description

### 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//etchosts/default//meta.json` is still present

### Describe the results you received and expected

`/var/lib/nerdctl//etchosts///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_

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.