Skip to content

Commit e79425b

Browse files
mhulscherclaude
andcommitted
containerd: advertise remap-ids capability for soci proxy plugin
The soci proxy_plugins block does not declare the remap-ids capability, so containerd's resolveSnapshotOptions does not recognize the snapshotter as supporting ID remapping. For pods with user namespaces (hostUsers: false) containerd falls back to slow-chown remapping, then soci's mount callback remaps the already-remapped host UIDs, and the sandbox fails with "container ID cannot be mapped to a host ID". Declaring capabilities = ["remap-ids"] lets containerd pass the idmap labels and skip slow chown, allowing user-namespace pods to start. Related: awslabs/soci-snapshotter#1888 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 8d7af94 commit e79425b

3 files changed

Lines changed: 3 additions & 0 deletions

File tree

packages/containerd-1.7/snapshotter-toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ snapshotter = "soci"
99
disable_snapshot_annotations = false
1010
# Plug soci snapshotter into containerd
1111
[proxy_plugins.soci]
12+
capabilities = ["remap-ids"]
1213
type = "snapshot"
1314
address = "/run/soci-snapshotter/soci-snapshotter.sock"
1415
[proxy_plugins.soci.exports]

packages/containerd-2.1/snapshotter-toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ snapshotter = "soci"
1313

1414
# Plug soci snapshotter into containerd
1515
[proxy_plugins.soci]
16+
capabilities = ["remap-ids"]
1617
type = "snapshot"
1718
address = "/run/soci-snapshotter/soci-snapshotter.sock"
1819
[proxy_plugins.soci.exports]

packages/containerd-2.2/snapshotter-toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ snapshotter = "soci"
1313

1414
# Plug soci snapshotter into containerd
1515
[proxy_plugins.soci]
16+
capabilities = ["remap-ids"]
1617
type = "snapshot"
1718
address = "/run/soci-snapshotter/soci-snapshotter.sock"
1819
[proxy_plugins.soci.exports]

0 commit comments

Comments
 (0)