Skip to content

mergeop/diffop not working properly with Moby worker #45111

@tonistiigi

Description

@tonistiigi

Description

Issue was reported in docker slack involving missing filecaps after using COPY --link:

Details image image image image image

While the specific issue was fixed in moby/buildkit#3671 , the reason it appeared in Moby and not in regular buildkit is that there seems to be an issue with the way images are created from the merge/diff references. While the correct behavior is to export the original individual layers, Moby exports the merge base snapshot. This isn't correct and doesn't have the cache semantics that merge/diff is supposed to promise. I think it may also cause failed cache imports when using --cache-from with such images.

@sipsma

Reproduce

Use COPY --link with 23.0

Expected behavior

No response

docker version

-

docker info

-

Additional Info

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions