Skip to content

Containers: support specifying a prefix to the container repository #36595

Open
@tmds

Description

@tmds

The container tooling will derive a name for the image based on the assembly name, and that name can be overridden by setting the ContainerRepository property.

When pushing to an image registry the name needs to be prefixed to have separate namespaces for users, apps, ...

This request is to have a property separate from ContainerRepository that allows to set this prefix.

Suggested name: ContainerRepositoryBase.

Example

in the csproj:

<ContainerRepository>frontend</ContainerRepository>

Publish with ContainerRepositoryBase set:

dotnet publish /p:PublishProfile=DefaultContainer /p:ContainerRegistry=quay.io /p:ContainerRepositoryBase=tmds/webstore

This publishes quay.io/tmds/webstore/frontend.

cc @baronfel

Metadata

Metadata

Assignees

Labels

Area-ContainersRelated to dotnet SDK containers functionalityFeature RequestuntriagedRequest triage from a team member

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions