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 think this is a big premature. Once we have a design proposal or working implementation of an OCI image which doesn't use layers, we can figure out how that can be implemented in containerd. While there are many helpers around layers in containerd, none of our interfaces enforce it. Snapshots don't have to be layers, content doesn't have to be layers, and the runtime only cares about mounts. I am going to close this for now, the layerless image discussion should happen elsewhere.
Now Image and Layer seems to exist some coupled problem:
RootFS
includesLayer
structure;images/image.go
includes RootFS function;cmd
;containerd/image.go
has image interface and its structureAbove is being implemented in both service and driver packages.
We might should set up individual interface and structure for image, layer and rootfs.
Maybe, we should setup layer interface(driver) in new file
image/layer.go
, and interface(service) incontainerd/layer.go
.layer member is according to https://github.com/opencontainers/image-spec/blob/master/layer.md#change-types, to be
CreateLayer
,DeleteLayer
,GetLayers
...For structure implementation, Layer might be inside to Image, that can be easy to be called by APIs.
cc @stevvooe @dmcgowan @estesp
The text was updated successfully, but these errors were encountered: