Skip to content

Since 2.3.0, transfer service refuses to initialize without erofs-utils #13346

Closed

Description

@glennschmidt

Description

My docker-in-docker setup no longer starts after upgrade to containerd 2.3.0. I believe this is because it requires the transfer plugin, which no longer works unless (sufficiently recent) erofs utilities are installed on the host.

level=info msg="skip loading plugin" error="failed to check mkfs.erofs availability:
  failed to run mkfs.erofs --help: exec: "mkfs.erofs": executable file not found in $PATH: skip plugin"
  id=io.containerd.differ.v1.erofs

level=info msg="skip loading plugin" error="failed to get instance for diff plugin \"erofs\":
  ... skip plugin"
  id=io.containerd.transfer.v1.local

Is this an expected dependency? It's not expressed in the apt repo.
If erofs support is optional, its absence should not prevent the transfer plugin from functioning?

Downgrading to containerd 2.2.3 fixes the issue for me.

Steps to reproduce the issue

Install containerd on a system without the mkfs.erofs binary.

Describe the results you received and expected

Expected: Transfer plugin loads
Actual: Transfer plugin (and downstream dependencies) skip loading

What version of containerd are you using?

containerd github.com/containerd/containerd/v2 2.3.0-1 2976f38

Any other relevant information

Linux, Debian Bookworm
Installed via https://github.com/devcontainers/features/blob/main/src/docker-in-docker/install.sh

Show configuration if it is related to CRI plugin.

No response

Activity

  1. thaJeztah commented on May 5, 2026

    @thaJeztah
    Member

    Trying to see which path causes it to be a required dependency; the fist logs should be just “skip this plugin”, but then the transfer service somewhere makes it a required differ?

    This path seems to be “ok” for a hard failure (if it’s explicitly configured?)

    target := platforms.Only(p)
    if uc.Differ != "" {
    inst, err := ic.GetByID(plugins.DiffPlugin, uc.Differ)
    if err != nil {
    return nil, fmt.Errorf("failed to get instance for diff plugin %q: %w", uc.Differ, err)

    This one shouldn’t (probably?) if it’s indeed “load all the ones”;

    inst, err := plugin.Instance()
    if err != nil {
    return nil, fmt.Errorf("failed to get instance for diff plugin %q: %w", plugin.Registration.ID, err)
    }

    Could it be based on the host's platform?

    for _, pd := range plugin.Meta.Platforms {
    // Note that we must use the platforms supported by the differ to
    // match the platform in `UnpackConfiguration`.
    //
    // For example, a differ might only support "linux/amd64", while
    // the platform in `UnpackConfiguration` is "linux(+erofs)/amd64".
    // If we reverse this logic, this wrong differ will be applied.
    if platforms.Only(pd).Match(p) {
    matched = true
    }
    }
    if !matched {
    continue
    }
    if applier != nil {
    skippedApplier := plugin.Registration.ID
    // Prefer the default when multiple plugins match
    if skippedApplier == defaults.DefaultDiffer {
    skippedApplier = applierID
    }
    log.G(ic.Context).Warnf("multiple differs match for platform, set `differ` option to choose, skipping %q", skippedApplier)

  2. mafuba commented on May 6, 2026

    @mafuba

    Hitting this on Microsoft's moby-containerd 2.3.0-debian12u1 + moby-engine 29.4.2-debian12u1 (devcontainers/features docker-in-docker Feature). Confirms the EROFS-differ init failure cascades into a full dockerd start failure:

    • dockerd polls grpc.health.v1.Health and gets Unimplemented (~13× over 15s) before timing out with failed to start containerd: timeout waiting for containerd to start
    • ctr from the same package shows ALL containerd.services.{version,introspection,namespaces,containers}.v1 services as unknown service
    • Downgrading only moby-containerd to 2.2.3-debian12u1 (same engine, same arch, same Microsoft repo) restores normal operation

    Strengthens the case for cherry-picking #13328 to release/2.3.x — for downstream Docker users the symptom isn't a quiet mkfs.erofs not found log line, it's a totally non-functional dockerd. Clean-room repro on debian:bookworm-slim available if useful.

  3. taylorsilva commented on May 7, 2026

    @taylorsilva

    Workaround: disable the erofs snapshotter plugin.

    disabled_plugins = ["io.containerd.snapshotter.v1.erofs"]
  4. cumhuronat commented on May 10, 2026

    @cumhuronat

    I hit what appears to be the same issue through VS Code Dev Containers + ghcr.io/devcontainers/features/docker-in-docker:2.

    Environment

    • Host: macOS Apple Silicon
    • Docker Desktop: 4.72.0
    • Host Docker Engine: 29.4.2
    • VS Code: 1.119.0
    • Dev Containers extension: 0.459.0
    • Base image: mcr.microsoft.com/devcontainers/dotnet:1-10.0
    • Feature: ghcr.io/devcontainers/features/docker-in-docker:2
    • Container architecture: aarch64 / arm64
    • Workload: .NET Aspire AppHost starting PostgreSQL via DinD

    Symptom

    Inside the devcontainer:

    docker ps
    Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?

    dockerd and containerd processes were started, but dockerd timed out waiting for containerd:

    failed to start containerd: timeout waiting for containerd to start

    Relevant logs:

    failed to check mkfs.erofs availability: failed to run mkfs.erofs --help: exec: "mkfs.erofs": executable file not found in $PATH: skip plugin
    failed to get instance for diff plugin "erofs"
    no plugins registered for io.containerd.transfer.v1: plugin: not found

    Workaround

    Installing erofs-utils in the devcontainer image fixed the issue:

    RUN rm -f /etc/apt/sources.list.d/yarn.list /usr/share/keyrings/yarnkey.gpg

    RUN apt-get update
    && apt-get install -y --no-install-recommends
    protobuf-compiler
    erofs-utils
    && rm -rf /var/lib/apt/lists/*

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions