Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions image/storage/storage_dest.go
Original file line number Diff line number Diff line change
Expand Up @@ -841,6 +841,8 @@ func (s *storageImageDestination) computeID(m manifest.Manifest) (string, error)
// ordinaryImageID is a digest of a config, which is a JSON value.
// To avoid the risk of collisions, start the input with @ so that the input is not a valid JSON.
tocIDInput.WriteString("@With TOC:")
tocIDInput.WriteString(ordinaryImageID)
tocIDInput.WriteByte('|') // "|" can not be present in a digest, so this is an unambiguous separator.
hasLayerPulledByTOC := false
for i, li := range layerInfos {
trusted, ok := s.trustedLayerIdentityDataLocked(i, li.Digest)
Expand Down
Loading