Skip to content

Commit a649518

Browse files
author
Cam Soper
authored
Document the LocalRegistry MSBuild property for SDK container publish (#45909)
Fixes #45171
1 parent 3788ce1 commit a649518

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

docs/core/containers/publish-configuration.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -283,6 +283,23 @@ For more information, see [.NET environment variables](../tools/dotnet-environme
283283
> [!NOTE]
284284
> It's currently not possible to set environment variables from the .NET CLI when publishing a container image. For more information, see [GitHub: .NET SDK container builds](https://github.com/dotnet/sdk-container-builds/issues/451).
285285
286+
### `LocalRegistry`
287+
288+
The `LocalRegistry` MSBuild property specifies the local container tooling to use when pushing to local sources. Supported values are `docker` and `podman`. If not set, the SDK determines the tool based on availability:
289+
290+
- If both `docker` and `podman` exist, and `docker` is an alias for `podman`, then `podman` is used.
291+
- If only `docker` exists, `docker` is used.
292+
- If only `podman` exists, `podman` is used.
293+
- If neither exists, an error is thrown.
294+
295+
To explicitly set the local registry tool, use the following configuration:
296+
297+
```xml
298+
<PropertyGroup>
299+
<LocalRegistry>podman</LocalRegistry>
300+
</PropertyGroup>
301+
```
302+
286303
## Configure container commands
287304

288305
By default, the container tools launch your app using either the generated AppHost binary for your app (if your app uses an AppHost), or the `dotnet` command plus your app's DLL.

0 commit comments

Comments
 (0)