Skip to content

default snapshotter configuration overrides containerd namespace-based defaults #4033

Open
@wdsun1008

Description

@wdsun1008

Description

The current nerdctl implementation sets a global default snapshotter (overlayfs), which overrides containerd's namespace-specific snapshotter configuration defined via namespace labels (ref). According to containerd's design, the default snapshotter for a namespace is resolved only when no snapshotter is explicitly specified.

Steps to reproduce the issue

  1. Configure a containerd namespace (e.g., k8s.io) with a label containerd.io/snapshotter=devmapper.
  2. Run nerdctl -n k8s.io run ... without specifying --snapshotter.
  3. Observe that nerdctl still uses overlayfs instead of the namespace-configured devmapper.

Describe the results you received and expected

If no --snapshotter is provided, nerdctl should defer to containerd's resolution logic, honoring namespace-level defaults.

What version of nerdctl are you using?

v2.0.4

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

None

Host information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions