Skip to content

Commit

Permalink
Merge pull request containers#1684 from giuseppe/propagate-flags
Browse files Browse the repository at this point in the history
store: propagate Flags from options
  • Loading branch information
flouthoc authored Aug 12, 2023
2 parents c3276d6 + 02a2c20 commit 9a25d82
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions store.go
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down

0 comments on commit 9a25d82

Please sign in to comment.