Skip to content
Discussion options

You must be logged in to vote

There's a conceptual reason, and it's worth noting up front that containerd isn't actually the component doing the staging — it hands the whole thing to hcsshim.

The Windows differ just applies the tar straight at the snapshot path:

// plugins/diff/windows/windows.go
archiveOpts := []archive.ApplyOpt{
    archive.WithParents(parentLayerPaths),
    archive.WithNoSameOwner(), // Lchown is not supported on Windows
    archive.AsWindowsContainerLayer(),
}

if _, err := archive.Apply(ctx, layerPath, rc, archiveOpts...); err != nil {

and AsWindowsContainerLayer resolves to:

// pkg/archive/tar_opts_windows.go
size, innerErr = ociwclayer.ImportLayerFromTar(ctx, r, root, options.Parents)

So steps …

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@slonopotamus
Comment options

Answer selected by slonopotamus
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants