-
Notifications
You must be signed in to change notification settings - Fork 56
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When windows layerFolder is null parsing of the runtime spec fails #126
Comments
I think making the implementation being able to parse the |
I was looking into this a bit more and the schema and spec for windows state this should be a min of 1 item:
There was recently work to enable Host Process containers for Windows and a scratch image was created for it. When running that image the runtime config doesn't have a layer folder:
It looks like this is a case where the implementation outpaced the spec and because of go's serialization behavior it didn't fail. |
@saschagrunert Sorry for the late replay. How about keeping watching the discussion on this issue? |
@utam0k sounds good to me! |
@utam0k @saschagrunert after a bit of discussion I think we can move forward with making this take the null to prevent the panic. would using a serde |
If windows
layerFolders
innull
loading of the runtime spec fails. This happens when containerd serializesWindows{}
portion of the spec due to go's serialization of listsExample:
I was able to work around this by modifying containerd's ctr initialization to make a blank slice:
which results in
The text was updated successfully, but these errors were encountered: