-
I have written a proxy content store and am having trouble when registering a contentserver instance that uses it. Here's the relevant section of code:
At line
Based on the type of
To get it to work I replaced line
Where
Looking through the relevant code it shows that there is no matching service found in
Meanwhile the image delete operation is correctly invoking my content store functions. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
The problem is that instantiating and registering a contentserver in my proxy is pointless. Unlike my It would seem only
Without the second there's nothing to create a content server even when I successfully create my content store. There a few alternatives I can think of:
Because the local store is the 1st registered this will get picked (assuming FIFO registration). Instead a default content store could be specified as you can do with a snapshotter:
Using the
I assume the plugin needs to be built with the exact source code used to build |
Beta Was this translation helpful? Give feedback.
-
If I use 1. Running Vanilla containerdNothing disabled. The log shows these content-related plugins being loaded:
I added a print in
2. Running containerd with "content" disabled with my .so pluginThe log shows:
My printf in
3. Running containerd with "io.containerd.content.v1' disabled with my .so plugin only registering content storeLog:
Because my plugin is loaded first it gets to be the system-wide content store. The content server was registerd:
Is it always the 1st content that gets chosen? In which case there'd be no need to disable anything but can it be guaranteed? My preference is to use a proxy content store (given the temperamental nature of the |
Beta Was this translation helpful? Give feedback.
The full URI is just
"io.containerd.content.v1.content"