Skip to content

Commit 58427d9

Browse files
authored
Specify that ContainerRuntimeIdentifier can be plural (#617)
Specify that ContainerRuntimeIdentifier can be be plural
1 parent fc53cdc commit 58427d9

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

docs/ContainerCustomization.md

+9-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ which results in a final tag of `8.0-alpine` for a .NET 8-targeting application.
4141

4242
This field is very free-form, and often can be used to select different operating system distributions, default package configurations, or any other 'flavor' of changes to a base image. Consult your base image's documentation for more details.
4343

44-
### ContainerRuntimeIdentifier
44+
### ContainerRuntimeIdentifier(s)
4545

4646
This property controls the OS and platform used by your container if your [`ContainerBaseImage`](#containerbaseimage) is a 'Manifest List'. Manifest Lists are images that support more than one architecture behind a single, common, name. For example, the `mcr.microsoft.com/dotnet/runtime` image is a manifest list that supports the `linux-x64`, `linux-arm`, `linux-arm64` images.
4747

@@ -55,6 +55,14 @@ By default, if your project has a RuntimeIdentifier set, that value will be used
5555
</PropertyGroup>
5656
```
5757

58+
_Set multiple container runtime identifiers for multi-architecture images (tags are `;` delimited):_
59+
60+
```xml
61+
<PropertyGroup>
62+
<ContainerRuntimeIdentifiers>linux-x64;linux-arm64</ContainerRuntimeIdentifiers>
63+
</PropertyGroup>
64+
```
65+
5866
> **Note**
5967
> If you'd like to publish to a musl-based OS like alpine (as opposed to a libc-based OS), you will need to specify the base image _including architecture_, instead of relying on
6068
> any of the inference described above. For example, a `net7.0`-targeting application that wanted to run on alpine with the x64 architecture would use the `7.0-alpine-amd64` tag of the `mcr.microsoft.com/dotnet/runtime` image (or another base image as appropriate for your project type):

0 commit comments

Comments
 (0)