Skip to content

Commit e404607

Browse files
committed
ContainerRegistry: when pulling the image from the registry, container needs the platform annotation - image load is ok without it
1 parent 3f92229 commit e404607

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Sources/containertool/Extensions/RegistryClient+publish.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,8 @@ func publishContainerImage<Source: ImageSource, Destination: ImageDestination>(
155155
ContentDescriptor(
156156
mediaType: manifestDescriptor.mediaType,
157157
digest: manifestDescriptor.digest,
158-
size: Int64(manifestDescriptor.size)
158+
size: Int64(manifestDescriptor.size),
159+
platform: .init(architecture: architecture, os: os)
159160
)
160161
]
161162
)

0 commit comments

Comments
 (0)