Skip to content

Need to document the LocalRegistry MSBuild property for SDK container publish #45171

@baronfel

Description

@baronfel

Type of issue

Missing information

Description

The LocalRegistry MSBuild property allows users to control which local container tooling they use when pushing to local sources. Currently it can be set to either Docker or Podman, and if the property is not set at all, the SDK will probe for the presence of docker or podman tooling.

Since it's common for podman tooling to be registered as docker (since they share may of the same commands), the SDK does a bit of probing to determine which tool to use. The algorithm is:

IF  'docker' and 'podman' both exist AND 'docker' is just an alias for 'podman' THEN use 'podman'
ELSE if 'docker' exists THEN use 'docker'
ELSE if 'podman' exists THEN use 'podman'
ELSE error

[Enter feedback here]

Page URL

https://learn.microsoft.com/en-us/dotnet/core/containers/publish-configuration

Content source URL

https://github.com/dotnet/docs/blob/main/docs/core/containers/publish-configuration.md

Document Version Independent Id

87603b1d-8af0-ecb0-fca2-aacd3d7ef5a0

Platform Id

36de283b-4744-4f85-0ab2-e0ce83954d51

Article author

@gewarren

Metadata

  • ID: a8539d30-07b2-29ff-8e9b-09d83bc066e5
  • PlatformId: 36de283b-4744-4f85-0ab2-e0ce83954d51
  • Service: dotnet-fundamentals

Related Issues


Associated WorkItem - 417524

Metadata

Metadata

Assignees

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions