Skip to content

Shim mount handler protocol - #14002

Merged
fuweid merged 12 commits into
containerd:mainfrom
dmcgowan:shim-mount-handler-protocol
Aug 26, 2026
Merged

fuweid merged 12 commits into
containerd:mainfrom
dmcgowan:shim-mount-handler-protocol

Conversation

@dmcgowan

@dmcgowan dmcgowan commented Aug 21, 2026 •

Copy link
Copy Markdown
Member

Replaces the shim mount-handling negotiation mechanism — a comma-separated
string in RuntimeInfo.Annotations["containerd.io/runtime-allow-mounts"],
discovered via a separate <shim> -info exec — with a typed extension
attached to the shim's BootstrapResult.

Protocol

message BootstrapResult {
  ...
  repeated Extension extensions = 6;   // new
}

message MountCapabilities {
  repeated string types = 1;      // e.g. "erofs", "loop"
  repeated string transforms = 2; // e.g. "format", "mkfs", "mkdir"
}

A shim attaches a containerd.types.MountCapabilities extension naming the
mount types and transforms it performs itself. containerd ignores an
extension whose type it doesn't recognize, so this and future extensions are
backward compatible with no version handshake. The proto change is additive
(buf breaking clean).

Presence of the extension is authoritative and sufficient on its own — there
is no separate enum/flag gating it. With no other consumer, a flag would only
ever duplicate what the extension's presence already says, while still
permitting states with no single correct interpretation (flag set with no
extension, or the reverse).

Deprecated: containerd.io/runtime-allow-mounts

The mechanism itself — loadShimInfo, shimInfo, the shimInfos cache, and
the runc.v2/runhcs.v1 shortcut — is removed. getRuntimeInfo itself stays,
since it's also used by PluginInfo and validateRuntimeFeatures.

It's not gone for shims that still rely on it, though: Kata's EROFS
snapshotter shim adopted this annotation before the extension existed
(kata-containers#12763),
so removing it outright would break existing deployments with no migration
window. task_mounts_deprecated.go confines a fallback to one file: when a
shim's bootstrap result carries no MountCapabilities extension, its runtime
name is checked against the annotation, same as before, cached per runtime
name for the daemon's lifetime. io.containerd.runc.v2 and
io.containerd.runhcs.v1 are skipped outright, as they were before. The
extension stays authoritative whenever a shim provides it — this only runs in
its absence, and can be deleted outright once known early adopters migrate.

The "<transform>/*" mount-type spelling used by the annotation is not a
general WithAllowMountType feature any more (e.g.
WithAllowMountType("format/*") no longer means anything special); parsing
it is confined to the deprecated fallback, which is the only remaining
producer of that spelling. WithAllowTransform is how a shim expresses that
directly.

Timing change

TaskManager.Create now starts the shim before activating the task's
rootfs mounts, so its advertised extension is known before the daemon decides
what to activate. Starting a shim doesn't need the rootfs; only task.Create
does. A failure between shim start and task creation now tears the shim down
via a deferred cleanup reusing the existing cleanupShimTask helper.

Mount activation itself is extracted into a new taskMountController
(task_mounts.go) rather than growing further inline in Create, since its
state transitions (owned vs. reused activation, NotImplemented,
AlreadyExists) are independent of shim startup and this keeps them testable
without spawning a shim.

Also fixed

  • parseStartResponse decoded a shim's JSON bootstrap response into a
    deprecated 3-field struct, silently dropping everything else. This mattered
    once BootstrapResult could carry extensions: a container joining an
    existing sandbox shim recovers that shim's result from bootstrap.json
    rather than from a fresh start. Fixed by decoding into BootstrapResult
    directly — no change to what's written or how it's stored, encoding/json
    already round-trips every field including unresolvable extensions.
  • TaskManager.Create and Delete both called the mount manager directly
    with no nil check, panicking whenever the mount manager plugin isn't
    registered. taskMountController treats a nil manager as nothing to do.
  • BootstrapResult.FindExtension/BootstrapParams.FindExtension now use the
    generated nil-safe GetExtensions() getter instead of an explicit nil
    receiver check (fuweid).
  • A stale comment referencing the removed activateMounts function
    (fuweid).

Not included

  • BootstrapParams.capabilities (daemon → shim) — no consumer yet.
  • Retyping/removing anything on runc.v2's side — it has no real mount
    handling of its own on this branch, so it advertises nothing.
  • An in-tree producer of MountCapabilities for end-to-end testing. No
    in-tree shim ever set the annotation this replaces either (manager_linux.go
    hardcodes Annotations: nil), so this matches existing precedent. Follow-up:
    teach the failpoint shim to read MountCapabilities from a spec annotation,
    the same way its existing failpoints are configured
    (io.containerd.runtime.v2.shim.failpoint.*), and add an integration test
    asserting the daemon skips the claimed mounts.

Testing

  • Unit tests for extension parsing/translation, mount-option construction,
    bootstrap JSON round-trip (including an extension type the daemon can't
    resolve), taskMountController.Activate's state transitions with a fake
    mount.Manager, and the deprecated annotation fallback's caching,
    denylist, and parsing, with a fake RuntimeInfo querier (no real shim
    binary needed).
  • make check-protos, buf breaking, go vet ./..., full go test run
    including the api module.
Deprecate containerd.io/runtime-allow-mounts shim annotation in favor of MountCapabilities bootstrap extension

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR replaces the legacy shim mount-handling negotiation mechanism (runtime info annotation discovered via extra -info exec) with an additive capability + typed extension advertised in the shim BootstrapResult, and updates containerd’s mount-activation flow to consult the shim’s advertised capabilities before deciding what the mount manager should perform.

Changes:

  • Extends the bootstrap protocol with BootstrapResult.extensions and adds CAPABILITY_MOUNT_MANAGEMENT, plus a new containerd.types.MountCapabilities extension type.
  • Reorders TaskManager.Create to start the shim before rootfs activation and uses the shim’s BootstrapResult (or the deprecated annotation as fallback) to derive mount activation options.
  • Fixes bootstrap JSON parsing/round-tripping to preserve full BootstrapResult data (capabilities/extensions), with added unit/integration test coverage and updated docs.

Reviewed changes

Copilot reviewed 18 out of 28 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
vendor/modules.txt Vendors github.com/containerd/containerd/api via local ./api replacement.
vendor/github.com/containerd/containerd/api/types/mount.proto Vendors new MountCapabilities proto message.
vendor/github.com/containerd/containerd/api/types/mount.pb.go Regenerated vendor proto bindings for MountCapabilities.
vendor/github.com/containerd/containerd/api/runtime/bootstrap/v1/helpers.go Vendors helper methods for capabilities/extensions on bootstrap messages.
vendor/github.com/containerd/containerd/api/runtime/bootstrap/v1/bootstrap.proto Vendors bootstrap protocol additions (extensions, mount capability).
vendor/github.com/containerd/containerd/api/runtime/bootstrap/v1/bootstrap.pb.go Regenerated vendor bootstrap proto bindings.
vendor/github.com/containerd/containerd/api/LICENSE Removes vendored LICENSE file for the vendored api module.
integration/failpoint/cmd/containerd-shim-runc-fp-v1/main_linux.go Failpoint shim can advertise mount-management capability via env var for tests.
integration/failpoint/cmd/containerd-shim-runc-fp-v1/main_linux_test.go Unit tests for parsing the failpoint shim mount capability spec.
go.sum Removes sums for github.com/containerd/containerd/api due to local replace.
go.mod Adds replace github.com/containerd/containerd/api => ./api.
docs/shim-capabilities.md New doc describing capability registry and mount management capability.
docs/runtime-v2.md Documents how capabilities + extensions are used in bootstrap protocol.
docs/mounts.md Updates mount activation docs to prefer transforms and new shim capability path.
core/runtime/v2/task_manager.go Starts shim before mount activation; adds capability-based mount claiming + deprecation warning.
core/runtime/v2/task_manager_mounts_test.go Tests shim capability/extension vs annotation fallback behavior.
core/runtime/v2/shim.go Preserves full BootstrapResult (capabilities/extensions) and fixes JSON parsing to avoid dropping fields.
core/runtime/v2/shim_test.go Adds protobuf-safe equality + tests ensuring bootstrap round-trip preserves extensions.
core/runtime/v2/binary.go Persists shim bootstrap result in shim instance for later capability checks.
core/mount/manager/manager.go Adjusts transform-application logic to consult AllowTransforms and AllowMountTypes.
core/mount/manager.go Adds AllowTransforms and WithAllowTransform; normalizes legacy format/* into transforms.
core/mount/manager_test.go Unit tests for transform normalization and option behavior.
api/types/mount.proto Adds MountCapabilities message in the in-repo api module.
api/types/mount.pb.go Regenerated proto bindings for in-repo MountCapabilities.
api/runtime/bootstrap/v1/helpers.go Adds BootstrapResult helpers (capabilities/extensions).
api/runtime/bootstrap/v1/bootstrap.proto Adds extensions field and CAPABILITY_MOUNT_MANAGEMENT to the bootstrap protocol.
api/runtime/bootstrap/v1/bootstrap.pb.go Regenerated bindings for bootstrap protocol additions.
api/next.txtpb Updates API descriptor snapshot for the new messages/fields.
Files not reviewed (2)
  • api/runtime/bootstrap/v1/bootstrap.pb.go: Generated file
  • api/types/mount.pb.go: Generated file

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread api/runtime/bootstrap/v1/helpers.go Resolved
Comment thread core/mount/manager.go Outdated
Comment on lines 110 to 113
@@ -98,14 +111,34 @@ func WithLabels(labels map[string]string) ActivateOpt {
// of the mounts will support. Even if there is a custom handler
// registered for the mount type to the mount handler, these mounts
// should not performed unless required to support subsequent mounts.
Copilot AI review requested due to automatic review settings August 21, 2026 07:28
@dmcgowan
dmcgowan force-pushed the shim-mount-handler-protocol branch from f0a3b2b to c403ebd Compare August 21, 2026 07:28

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 19 out of 29 changed files in this pull request and generated no new comments.

Files not reviewed (2)
  • api/runtime/bootstrap/v1/bootstrap.pb.go: Generated file
  • api/types/mount.pb.go: Generated file
Suppressed comments (1)

go.mod:162

  • The new replace github.com/containerd/containerd/api => ./api causes go mod vendor to vendor the local ./api tree. In this PR that also results in vendor/github.com/containerd/containerd/api/ no longer containing a LICENSE file (it used to), while many other vendored modules do. Please ensure license/attribution expectations for the vendored github.com/containerd/containerd/api module are still met (e.g., by keeping a LICENSE/NOTICE file in the api/ module so it is preserved when vendored).
replace github.com/containerd/containerd/api => ./api

@fuweid

fuweid commented Aug 21, 2026

Copy link
Copy Markdown
Member

do we target this to v2.4?

@dmcgowan dmcgowan added this to the 2.4 milestone Aug 21, 2026
@dmcgowan dmcgowan moved this from Needs Triage to Needs Reviewers in Pull Request Review Aug 21, 2026
@dmcgowan
dmcgowan marked this pull request as ready for review August 21, 2026 20:45
@dmcgowan

Copy link
Copy Markdown
Member Author

@fuweid yes, I'd like to get this in for 2.4. We could make this a breaking change (low impact) by removing the runtime info check. I was never a fan of that and think its only used by Nerdbox now, which can switch to this after its merged.

@dmcgowan
dmcgowan requested review from fuweid and a balanced review from Copilot August 21, 2026 20:48
@dmcgowan
dmcgowan requested a review from mxpv August 21, 2026 20:50

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 19 out of 29 changed files in this pull request and generated 5 comments.

Files not reviewed (2)
  • api/runtime/bootstrap/v1/bootstrap.pb.go: Generated file
  • api/types/mount.pb.go: Generated file

Comment thread docs/mounts.md Outdated
`containerd.io/runtime-allow-mounts` annotation in their runtime info, a comma
separated list using the `"<transformer>/*"` convention for transformers,
which containerd translates the same way `WithAllowMountType` does. It is
honoured only when a shim advertises no capabilities.
Comment thread core/runtime/v2/task_manager.go Resolved
Comment thread core/mount/manager/manager.go Resolved
Comment thread core/mount/manager.go Resolved
Comment thread core/runtime/v2/task_manager.go Outdated
// shim instance, and does not require a separate invocation of the shim
// binary to discover. This annotation is still honoured for shims that do
// not advertise the capability.
allowedMounts = "containerd.io/runtime-allow-mounts"

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Curious - should we drop this label in 2.4 ? I doubt there are external uses besides nerdbox.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, but was thinking of doing that in a quick follow up. I can try and add it here though

@hsiangkao hsiangkao Aug 22, 2026 •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Curious - should we drop this label in 2.4 ? I doubt there are external uses besides nerdbox.

kata is already using it for erofs snapshotter (https://github.com/kata-containers/kata-containers/pull/12763/files#diff-23c0f841997f951b150ed63026815477c1540196e579ce68afa68268e669edb0R32), including nvidia and msft use cases..

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mxpv @dmcgowan I hope to leave it for a while so that people can have time to migrate to the new way.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @dmcgowan we have enabled erofs snapshotter in kata for a while with the annotation of "containerd.io/runtime-allow-mounts",please see https://github.com/kata-containers/kata-containers/blob/7c6ba40c54ea29b459b4997cff948caaba4e658b/src/runtime-rs/crates/shim/src/bin/main.rs#L32 Is there a migration window for us to plan the transition. I believe it's definitly a breaking change for kata containers.
CC @fidencio

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is breaking but only for 2.4. I would rather consider adding special cases for kata (check allowed-mounts for specific runtimes) rather than keep the complicated logic of having it defined in two different parts of the flow.

Generally the bootstrap protocol is a bit of a breaking change already that we are trying to complete. My preference is to work with a couple early adopters to make it smooth rather than keep the logic we want to get rid of though. We already had a special case in there for runc (that this will get rid of), so having a temporary special case for kata isn't so bad (if kata and no extensions, check info, removed before 2.6 lts).

@dmcgowan dmcgowan Aug 23, 2026 •

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To clariify the logic cleanup, rather than always having an info call the is done before the first shim is started and cached for the life of the process, the information is part of the bootstrap negotiation. This allows the shim to return the result based on the running shim instance rather than a static set always defined for the shim, which could allow the shim to better decide mount types based on environmental conditionals such as rootless.

Not directly related to this change but this also allows us to more easily evolve the protocol so that the shim can own more of the runtime filesystem state. This is helpful for lazy loading which often makes the filesystem reliant on an external process for the life of a shim.

Comment thread core/runtime/v2/task_manager.go Resolved
Comment thread api/types/mount.proto Resolved
Copilot AI review requested due to automatic review settings August 22, 2026 07:49
@dmcgowan
dmcgowan force-pushed the shim-mount-handler-protocol branch from c403ebd to 5426b0f Compare August 22, 2026 07:49

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 19 out of 29 changed files in this pull request and generated 5 comments.

Files not reviewed (2)
  • api/runtime/bootstrap/v1/bootstrap.pb.go: Generated file
  • api/types/mount.pb.go: Generated file
Suppressed comments (2)

core/mount/manager/manager.go:159

  • This removes the previously documented WithAllowMountType("format/*") behavior, so existing API callers (and legacy annotation values) silently stop claiming transforms and containerd performs them on the host. WithAllowTransform can be added without breaking the wildcard contract by retaining the p+"/*" check.
		return !slices.Contains(config.AllowTransforms, p) && !slices.Contains(config.AllowMountTypes, t)

core/runtime/v2/task_manager.go:200

  • For the normal shared-sandbox path with opts.Address set, ShimManager.Start constructs a fresh BootstrapResult containing only version/protocol/address (shim_manager.go:232-236). Therefore this value has no extensions, and containers joining that sandbox never inherit the shim's mount handling—the exact reload scenario this change intends to support. Recover the sandbox's persisted bootstrap result (or otherwise propagate its advertised fields) even when an explicit endpoint is supplied.
	var bootstrap *bootapi.BootstrapResult
	if sc, ok := shim.(shimCapabilities); ok {
		bootstrap = sc.BootstrapResult()
	}

Comment thread core/runtime/v2/task_mounts.go Resolved
Comment thread core/runtime/v2/task_manager.go Resolved
Comment thread docs/shim-capabilities.md Resolved
Comment thread docs/runtime-v2.md Resolved
Comment thread api/runtime/bootstrap/v1/helpers.go Resolved
Add a registry entry for the containerd.types.MountCapabilities extension,
and update the mount and bootstrap protocol docs for extensions replacing
the reserved-for-future-use capabilities field, and for the removal of the
runtime-allow-mounts annotation and the "/*" transform convention.

Signed-off-by: Derek McGowan <[email protected]>
Neither doc previously said how much of a claimed transform chain is
actually honored; a reader could assume claiming any transform in a
chain was sufficient on its own. State the suffix rule plainly, with
the format/mkdir/overlay example the code itself now enforces, and
call out that format in particular can only ever be claimed as part
of a suffix that covers what follows it, never alone, since it
resolves mount points internal to the mount manager.

Signed-off-by: Derek McGowan <[email protected]>
Copilot AI review requested due to automatic review settings August 26, 2026 18:35
@dmcgowan
dmcgowan force-pushed the shim-mount-handler-protocol branch from 17613af to fbd9f37 Compare August 26, 2026 18:35

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 24 out of 35 changed files in this pull request and generated no new comments.

Files not reviewed (2)
  • api/runtime/bootstrap/v1/bootstrap.pb.go: Generated file
  • api/types/mount.pb.go: Generated file
Suppressed comments (1)

go.mod:161

  • A local replace is only honored by the main module. Consumers importing github.com/containerd/containerd/v2 will ignore this directive and resolve the required containerd/api v1.12.0-beta.0, which does not contain MountCapabilities, BootstrapResult.Extensions, or the new helper methods used by this PR, so downstream builds will fail. Please depend on a published API version/pseudo-version containing these changes and remove the local replacement.
replace github.com/containerd/containerd/api => ./api

@fuweid
fuweid enabled auto-merge August 26, 2026 19:20
@fuweid
fuweid added this pull request to the merge queue Aug 26, 2026
Merged via the queue into containerd:main with commit 341a4e0 Aug 26, 2026
57 checks passed
@github-project-automation github-project-automation Bot moved this from Review In Progress to Done in Pull Request Review Aug 26, 2026
@dmcgowan
dmcgowan deleted the shim-mount-handler-protocol branch August 26, 2026 22:44
@samuelkarp samuelkarp added the area/runtime Runtime label Sep 11, 2026
social4hyq pushed a commit to social4hyq/homebrew-core that referenced this pull request Sep 20, 2026
containerd 2.4.0

Created-by: HarmonybrewBot
Commit-by: HarmonybrewBot
Merged-by: HarmonybrewBot
Description: Created by `brew bump`

---

Created with `brew bump-formula-pr`.<details>
  <summary>release notes</summary>
  <pre>Welcome to the v2.4.0 release of containerd!

containerd 2.4 is a regular (non-LTS) release with a shorter support window,
intended for users who want to adopt new features sooner. As the release
following the 2.3 LTS, it is the point in the release cycle where previously
deprecated features may be removed, so this release may include breaking
changes; check the notes below and clear any deprecation warnings from your
current version before upgrading.

Users prioritizing stability and a longer support lifecycle should stay on the
2.3 LTS release.

### Highlights

#### Container Runtime Interface (CRI)

* Enable mount manager for image mounts in CRI ([#13542](containerd/containerd#13542))
* Export sandbox image and CNI directory configuration in CRI plugin info ([#13940](containerd/containerd#13940))
* Set default runtimeFeatures.UserNamespacesHostNetwork to true ([#13162](containerd/containerd#13162))
* Support OCI runtime feature introspection for non-runc runtimes ([#13504](containerd/containerd#13504))

#### Image Distribution

* Apply hardening to strip sensitive authentication headers when fetching descriptor URLs ([#12889](containerd/containerd#12889))
* Support propagating HTTP 299 warning headers from registries to the resolver ([#12698](containerd/containerd#12698))
* Use klauspost/compress for gzip layer decompression ([#13560](containerd/containerd#13560))

#### Image Storage

* Add client options to fetch all layer content during unpack even when snapshots exist ([#14126](containerd/containerd#14126))
* Include media type in content create events ([#13833](containerd/containerd#13833))
* Add forward References to the GC collection context ([#13634](containerd/containerd#13634))

#### Node Resource Interface (NRI)

* Expose container image name, digest, and config digest to NRI plugins ([#13960](containerd/containerd#13960))
* Emit deprecation warnings for plugins using deprecated NRI interfaces ([#13916](containerd/containerd#13916))

#### Runtime

* Mask /proc/interrupts and CPU thermal throttle sysfs paths in Linux containers by default ([#14090](containerd/containerd#14090))
* Add UpdateSandbox RPC to propagate sandbox controller updates to the shim ([#14105](containerd/containerd#14105))
* Avoid immediately restarting containers with restart=always policy after they are explicitly stopped ([#13993](containerd/containerd#13993))
* Pass tracing context from shim to runc and hooks ([#14036](containerd/containerd#14036))
* Fix user and group lookup failures in container rootfs containing symlinked /etc/passwd or /etc/group ([#13818](containerd/containerd#13818))
* Implement Windows named-pipe server and log streaming support in pkg/shim ([#13948](containerd/containerd#13948))
* Enable log scrubbing by default on Windows ([#13837](containerd/containerd#13837))
* Allow specifying parent checkpoint directory when checkpointing with runc ([#13699](containerd/containerd#13699))

#### Snapshotters

* Add Prometheus metrics for EROFS snapshotter layer content cache ([#13941](containerd/containerd#13941))
* Support warm image cache for erofs snapshotter ([#13813](containerd/containerd#13813))
* Add max size label for snapshots ([#13520](containerd/containerd#13520))

#### Breaking

* Remove deprecated CRI and tracing configuration options:
  * Remove `enable_cdi` in CRI runtime configuration (CDI is now always enabled)
  * Remove `bin_dir` in CRI CNI configuration (use `bin_dirs`)
  * Remove `endpoint`, `protocol`, and `insecure` in OTLP tracing processor configuration (use standard OTLP environment variables)
  * Remove `service_name` and `sampling_ratio` in internal tracing configuration (use standard OpenTelemetry environment variables) ([#14166](containerd/containerd#14166))
* Remove restore in CreateContainer ([#13871](containerd/containerd#13871))

#### Deprecations

* Deprecate containerd.io/runtime-allow-mounts shim annotation in favor of MountCapabilities bootstrap extension ([#14002](containerd/containerd#14002))
* Remove deprecated shim.Command from pkg ([#13991](containerd/containerd#13991))
* Deprecate task API address and version fields in runc options and move to CreateTaskRequest ([#13360](containerd/containerd#13360))

Please try out the release binaries and report any issues at
https://github.com/containerd/containerd/issues.

### Contributors

* Maksym Pavlenko
* Sebastiaan van Stijn
* Samuel Karp
* Derek McGowan
* Wei Fu
* Akihiro Suda
* Mike Brown
* Paweł Gronowski
* Chris Henzie
* Phil Estes
* Brian Goff
* Austin Vazquez
* ningmingxiao
* Jordan Liggitt
* Akhil Mohan
* Eshaan Mathur
* Krisztian Litkey
* Chris Ayoub
* Kazuyoshi Kato
* Kir Kolyshkin
* Sergey Kanzhelev
* Ahmet Alp Balkan
* Arpit Jain
* Cindy Li
* Damien Grisonnet
* Esteban Ginez
* Gao Xiang
* Harsh Rawat
* Laura Lorenz
* Maksim An
* Oleh Konko
* Philip Laine
* Abhishek Bhunia
* Alan Grosskurth
* Albin Kerouanton
* Alex Lyn
* Aman Raj
* Amir Alavi
* Amit Barve
* Andrew Halaney
* AprilNEA
* Arjun Yogidas
* Ayato Tokubi
* Aysha Afrah Ziya
* Ben Cressey
* Bing Hongtao
* Chris Crone
* Craig Gumbley
* Daniel De Graaf
* Davanum Srinivas
* Dr. Jan-Philip Gehrcke
* Harshal Patel
* Henry Wang
* Hsiu-Chi Tsai
* JP Phillips
* Jing Chen
* Kohei Tokunaga
* LEI WANG
* Martín Fernández
* Mikhail Dmitrichenko
* Nahum Litvin
* Nikolaus Schuetz
* Pablo Garcia Caceres
* Paco Xu
* Robert Cronin
* SaloniRathi
* Shambhavi Srivastava
* Tianon Gravi
* XlabAI
* Yuanliang Zhang
* ayush-panta
* crawfordxx
* cshung
* match man
* s3onghyun
* 归寂
* 徐晓伟

### Changes
<details><summary>658 commits</summary>
<p>

  * [`647fafa847`](containerd/containerd@647fafa) Prepare release notes for v2.4.0
* Prepare release notes for api/v1.12.0 ([#14170](containerd/containerd#14170))
  * [`5c4ea21de3`](containerd/containerd@5c4ea21) Prepare release notes for api/v1.12.0
* Deprecations and removals for 2.4 ([#14166](containerd/containerd#14166))
  * [`531b3a37b9`](containerd/containerd@531b3a3) tracing: remove deprecated tracing config options
  * [`ca8579a334`](containerd/containerd@ca8579a) tracing: add tests for otlp exporter and env vars
  * [`ee024b7c99`](containerd/containerd@ee024b7) tracing: remove deprecated otlp configs
  * [`f7c654fb4f`](containerd/containerd@f7c654f) cri: remove deprecated cni bin_dir
  * [`4f7de25abb`](containerd/containerd@4f7de25) cri: remove enable_cdi config option
  * [`830b48d3fd`](containerd/containerd@830b48d) cri: delay registry config removal to 2.7
* Prepare release notes for v2.4.0-rc.0 ([#14115](containerd/containerd#14115))
  * [`c02620e398`](containerd/containerd@c02620e) Prepare release notes for v2.4.0-rc.0
  * [`02c7c97f43`](containerd/containerd@02c7c97) Update release doc for 2.4.0 release
  * [`484e5aba58`](containerd/containerd@484e5ab) vendor: github.com/containerd/containerd/api v1.12.0-rc.1
  * [`67174d675c`](containerd/containerd@67174d6) mailmap: add Paweł Gronowski
* Update erofs snapshotter to record blob source ([#14107](containerd/containerd#14107))
  * [`697a7571a4`](containerd/containerd@697a757) erofs: give a dm-verity device a name unique to its mount
  * [`f75817eb3b`](containerd/containerd@f75817e) erofs: record where a layer blob is
  * [`d92088d822`](containerd/containerd@d92088d) erofs: refuse to apply into a read-only snapshot
  * [`8cc0b076a6`](containerd/containerd@8cc0b07) erofs: serve layer content cache on parented Prepare
* build(deps): bump the golang-x group with 4 updates ([#14150](containerd/containerd#14150))
  * [`75138b3fda`](containerd/containerd@75138b3) build(deps): bump the golang-x group with 4 updates
* build(deps): bump github.com/klauspost/compress from 1.19.2 to 1.20.0 ([#14153](containerd/containerd#14153))
  * [`353342cae6`](containerd/containerd@353342c) build(deps): bump github.com/klauspost/compress from 1.19.2 to 1.20.0
* pkg/oci: mask thermal interrupt info ([#14090](containerd/containerd#14090))
  * [`c176f185b0`](containerd/containerd@c176f185b08e14bde055d81dc509

See merge request: Harmonybrew/homebrew-core!20372
mike-sul added a commit to mike-sul/moby that referenced this pull request Nov 2, 2026
A temporary activation panics containerd before 2.4 when the view ends
in a transformed mount, which is every EROFS parent view, so `docker
diff` takes containerd down on all 2.2 and 2.3 releases. It is fixed in
containerd 2.4 by containerd/containerd@0b641f00994f
("mount: honor a claimed transform as a chain suffix", part of
containerd/containerd#14002).

Activate the parent view without WithTemporary. When the view is a
single mount that Mount Manager handles (e.g. an image without layers),
it returns no system mounts, and mounting nothing would make `docker
diff` report every file as added. So bind-mount the last active mount
point read-only: that is the view's root, and the same bind mount a
temporary activation adds on a fixed containerd.

Signed-off-by: Mykhaylo Sul <[email protected]>
mike-sul added a commit to mike-sul/moby that referenced this pull request Nov 2, 2026
A temporary activation panics containerd before 2.4 when the view ends
in a transformed mount, which is every EROFS parent view, so `docker
diff` takes containerd down on all 2.2 and 2.3 releases. It is fixed in
containerd 2.4 by containerd/containerd@0b641f00994f
("mount: honor a claimed transform as a chain suffix", part of
containerd/containerd#14002).

Activate the parent view without WithTemporary. When the view is a
single mount that Mount Manager handles (e.g. an image without layers),
it returns no system mounts, and mounting nothing would make `docker
diff` report every file as added. So bind-mount the last active mount
point read-only: that is the view's root, and the same bind mount a
temporary activation adds on a fixed containerd.

Signed-off-by: Mykhaylo Sul <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

7 participants