Repository navigation
Conversation
- Replace stale Debian/Mariner distro list with Alpine, Azure Linux, Ubuntu, Nano Server, and Windows Server Core, and link to the full tag listing - Refresh walkthrough version framing and output for the .NET 10 SDK - Remove fixed chiseled size estimate - Link docker init to its reference docs and drop 'new' - Scope the app user guidance to Linux images and describe Windows users Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
- Replace Mariner with Azure Linux and use current 10.0/11.0 tag examples. - Remove obsolete runtime-deps *-aot variants; native AOT apps use regular runtime-deps images, and -aot applies only to SDK images. - Describe ICU and tzdata per size-optimized family, including -extra variants and Azure Linux distroless tzdata. - Warn that InvariantGlobalization must be removed before moving to an image with ICU. - Drop .NET 8 Debian/Jammy tzdata history; note default tags use Ubuntu. - Clarify that Docker Hub catalogs images hosted on MCR, and remove the non-pullable framework landing page from the image table. - Replace the 2x AOT SDK size estimate. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
- Replace the .NET 9 Dockerfile and project with digest-pinned .NET 10 and .NET 11 samples under snippets/net10.0 and snippets/net11.0. - Add a dotnet-supported-version pivot group (.NET 11 and .NET 10) and use it for this article, dropping the out-of-support .NET 8 and .NET 9 pivots. - Pass --framework to dotnet new so the project matches the images. - Fix publish paths, Linux app host name, template output, docker images output, FROM wording, final-stage description, Windows image tags, and redundant cleanup commands. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
- Recommend /t:PublishContainer; scope DefaultContainer profile to Web/Worker SDK projects (NETSDK1198 for console apps) - Document EnableSdkContainerSupport default for non-library projects in .NET SDK 10+ - Document PUSH/PULL credential environment variables and their precedence; drop <token> username guidance - Fix DOTNET_CONTAINER_INSECURE_REGISTRIES delimiter (semicolon) and quoting; use supported base image tags - Telemetry: MRC -> MCR, LocalPullType is currently unset, Date point -> Data point; fix MSBuild typo Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
- Use single-line publish commands that work in PowerShell and Unix shells. - Publish the archive as .tar and explain that the SDK writes an uncompressed tar. - Add GHCR sign-in guidance and a namespaced ContainerRepository. - Retarget the worker sample to net11.0 and refresh publish output. - Show the CONTAINER1012 error, LocalRegistry runtime selection, and the default latest tag. - Add a run-the-image section and fix cleanup output. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
- Require a trailing slash in the ContainerWorkingDirectory example - Clarify that archive output is an uncompressed tar file and use -t:PublishContainer in the archive example (DefaultContainer profile only exists for Web SDK projects) - Document multi-RID truncation of env var and label values containing ':' - Use dash-prefixed MSBuild switches in tag examples (Git Bash on Windows) - Split single-item and semicolon shorthand examples to avoid duplicated tokens - Update base image examples, AOT/trimmed inference, and Windows guidance - Describe ENTRYPOINT/CMD per ContainerAppCommandInstruction mode - Fix image naming table, tag length limit, and multi-tag semantics - Document port inference alongside explicit ContainerPort items - Add ContainerPushNoCache (.NET 11) and .NET toolset default labels Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Refine changed prose across the six updated Docker and SDK container
articles to align with the Microsoft Writing Style Guide and dotnet/docs
conventions without altering technical claims, commands, or versions:
- Convert passive constructions to active voice and imperative mood
- Standardize terminology (Microsoft Artifact Registry, Docker Hub link
text, container image vs. container, configuration file)
- Remove filler adverbs, weak lead-ins, standalone demonstratives,
gerunds, first-person plural, and prohibited phrases ("and so on")
- Lead with purpose/conditions and tighten list parallelism and
punctuation
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
The .NET 11 guidance omits explicit runtime selection and a workaround for unavailable inferred base-image tags, which can leave images inaccessible to Docker or cause AOT/trimmed publishing to fail.
2 open issues
What changed in this PR
Updates the .NET container documentation and samples for .NET 10 and .NET 11, covering Dockerfile builds, SDK publishing, and image configuration.
Changes:
- Updates tutorial version pivots, sample projects, and pinned Docker images.
- Refreshes image distribution, globalization, native AOT, and container-user guidance.
- Expands SDK publishing guidance for authentication, archives, runtime commands, and registry configuration.
| File | Description |
|---|---|
docs/zone-pivot-groups.yml |
Adds a .NET 10 and .NET 11 pivot group. |
docs/core/docker/snippets/net11.0/App/Program.cs |
Adds the .NET 11 counter sample. |
docs/core/docker/snippets/net11.0/App/DotNet.Docker.csproj |
Adds the .NET 11 sample project. |
docs/core/docker/snippets/net11.0/App/Dockerfile |
Adds pinned .NET 11 build and runtime images. |
docs/core/docker/snippets/net10.0/App/Program.cs |
Adds the .NET 10 counter sample. |
docs/core/docker/snippets/net10.0/App/DotNet.Docker.csproj |
Retargets the sample to .NET 10. |
docs/core/docker/snippets/net10.0/App/Dockerfile |
Updates pinned images to .NET 10. |
docs/core/docker/introduction.md |
Refreshes the introductory example and platform guidance. |
docs/core/docker/container-images.md |
Updates image families, tags, and globalization guidance. |
docs/core/docker/build-container.md |
Updates version-specific instructions, snippets, and cleanup steps. |
docs/core/containers/snippets/Worker/DotNet.ContainerImage.csproj |
Updates the worker to .NET 11 and matching hosting package. |
docs/core/containers/sdk-publish.md |
Expands publish, run, archive, and registry instructions. |
docs/core/containers/publish-configuration.md |
Revises configuration defaults, examples, and limitations. |
docs/core/containers/overview.md |
Clarifies container support, publish targets, and authentication. |
Review effort: Balanced
| - If the project uses `PublishAot=true` then the `nightly/runtime-deps` `jammy-chiseled-aot` variant of the base image for best size and security. | ||
| - If the project uses `InvariantGlobalization=false` then the `-extra` variants is used to ensure localization still works. | ||
| - If the project targets the `linux-musl-x64` or `linux-musl-arm64` runtime identifier, the SDK selects the `alpine` image variant (for example, `10.0-alpine`) so that your project can run. | ||
| - If the project sets `PublishAot=true` or `PublishTrimmed=true` and targets a non-musl Linux runtime identifier, the SDK selects the `noble-chiseled` variant of the `runtime-deps` image (for example, `mcr.microsoft.com/dotnet/runtime-deps:10.0-noble-chiseled`) to minimize image size and improve security. |
| Build succeeded in 3.1s | ||
| ``` | ||
|
|
||
| The `dotnet publish` command compiles your worker app to the _publish_ folder and pushes the container image to a local container runtime, such as Docker or Podman. The SDK automatically detects which runtime to use. To choose a specific runtime, set the [`LocalRegistry`](publish-configuration.md#localregistry) property. |
lbussell
force-pushed
the
lbussell/container-docs-writing-review
branch
from
November 24, 2026 18:40
e41079a to
76a2026
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Agent assessment
Self-reported assessment, not an independent review.
Assessed revision:
76a202681915c920b6f8708bbd542b0ee3beae44origin/main(8 linear commits) with zero content diff on touched files versus pre-rebasee41079a87d;.NET 11snippet updates from#56872are preserved underdocs/core/docker/snippets/net11.0/App/anddocs/core/containers/snippets/Worker/.↑ Tutorial commands, container builds, SDK publish scenarios, Markdown formatting, links, anchors, and zone pivots were validated across all six articles.
↓ Post-rebase OpenPublishing, Snippets 5000, PoliCheck, and markdownlint CI checks are pending, and two minor .NET 11 SDK edge cases (
LocalRegistrydefault runtime order insdk-publish.mdand chiseled tag inference inpublish-configuration.md) are noted for review.The .NET Docker and SDK container publishing articles still referenced out-of-support .NET versions (.NET 8 and .NET 9), retired base image distros and variants, and outdated SDK publishing defaults.
This PR brings the docs up to date for the currently supported releases (.NET 10 and .NET 11) and corrects inaccuracies found while walking through the tutorials.
runtime-deps *-aot) with current supported offerings and clarifies ICU, tzdata, and user guidance./t:PublishContainer,EnableSdkContainerSupport, credential environment variables, andContainerPushNoCache).Internal previews
Build report