You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying out the "Make your remote snapshotter" feature, mentioned in the overview, but I can't get it working.
Context
Here's what I've done:
Create a type that implements the FileSystem interface (with Mount, Check and Unmount functions) and expose it through a gRPC server on unix:///dev/shm/test-snapshotter.sock.
Configure containerd's config.toml, registering the snapshotter under the name mysnap:
[proxy_plugins]
[proxy_plugins.mysnap]
type = "snapshot"address = "/dev/shm/test-snapshotter.sock"
Run nerdctl pull debian --snapshotter mysnap
Problem
During nerdctl pull, the snapshotter receives a call to Mount. However, the only provided label is containerd.io/snapshot.ref, which is not enough information to retrieve the remote layer. Note that, if I pull using crictl pull, I do receive additional labels such as containerd.io/snapshot/cri.layer-digest.
Is there anything I need to configure to get this working? If it helps, I can create a repository that reproduces the issue.
The text was updated successfully, but these errors were encountered:
aochagavia
changed the title
Custom remote snapshotter does not receive enough information when Mount is called
Custom remote snapshotter is missing labels when Mount is called
Oct 16, 2024
aochagavia
changed the title
Custom remote snapshotter is missing labels when Mount is called
Missing labels when Mount is called on custom remote snapshotter
Oct 16, 2024
I'm trying out the "Make your remote snapshotter" feature, mentioned in the overview, but I can't get it working.
Context
Here's what I've done:
Create a type that implements the
FileSystem
interface (withMount
,Check
andUnmount
functions) and expose it through a gRPC server onunix:///dev/shm/test-snapshotter.sock
.Configure containerd's
config.toml
, registering the snapshotter under the namemysnap
:Run
nerdctl pull debian --snapshotter mysnap
Problem
During
nerdctl pull
, the snapshotter receives a call toMount
. However, the only provided label iscontainerd.io/snapshot.ref
, which is not enough information to retrieve the remote layer. Note that, if I pull usingcrictl pull
, I do receive additional labels such ascontainerd.io/snapshot/cri.layer-digest
.Is there anything I need to configure to get this working? If it helps, I can create a repository that reproduces the issue.
The text was updated successfully, but these errors were encountered: