Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
image/save: Fix missing layers in manifest
The new OCI-compatible archive export relies on the Descriptors returned by the layer (`distribution.Describable` interface implementation). The issue with that is that the `roLayer` and the `referencedCacheLayer` types don't implement this interface. Implementing that interface for them based on their `descriptor` doesn't work though, because that descriptor is empty. To workaround this issue, just create a new descriptor if the one provided by the layer is empty. Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com>
- Loading branch information
Showing
2 changed files
with
44 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters