From 02a2c20b2d40fada709a85684fbdd7db0c1f1569 Mon Sep 17 00:00:00 2001 From: Giuseppe Scrivano Date: Fri, 11 Aug 2023 15:26:19 +0200 Subject: [PATCH] store: propagate Flags from options the flags specified in the layer options were not honored before. Signed-off-by: Giuseppe Scrivano --- store.go | 1 + 1 file changed, 1 insertion(+) diff --git a/store.go b/store.go index 14c1edd7f8..a31aebfd24 100644 --- a/store.go +++ b/store.go @@ -1459,6 +1459,7 @@ func (s *store) PutLayer(id, parent string, names []string, mountLabel string, w layerOptions := LayerOptions{ OriginalDigest: options.OriginalDigest, UncompressedDigest: options.UncompressedDigest, + Flags: options.Flags, } if s.canUseShifting(uidMap, gidMap) { layerOptions.IDMappingOptions = types.IDMappingOptions{HostUIDMapping: true, HostGIDMapping: true, UIDMap: nil, GIDMap: nil}