<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Containers on DVLUP</title><link>/en/tags/containers/</link><description>Recent content in Containers on DVLUP</description><generator>Hugo</generator><language>en-US</language><lastBuildDate>Mon, 09 Nov 2026 00:00:00 +0000</lastBuildDate><atom:link href="/en/tags/containers/index.xml" rel="self" type="application/rss+xml"/><item><title>How to create Multi-Platform Container Images</title><link>/en/blog/2026.11.09-multiplatform-container-images/</link><pubDate>Mon, 09 Nov 2026 00:00:00 +0000</pubDate><guid>/en/blog/2026.11.09-multiplatform-container-images/</guid><description>&lt;h2 id="using-the-net-sdk-for-multi-arch-images"&gt;Using the .NET SDK for Multi-arch Images&lt;/h2&gt;&#10;&#10;&#10;&#10;&#10; &lt;blockquote class="gh-blockquote gh-note"&gt;&#10; &lt;span class="font-bold"&gt;Note&lt;/span&gt;&#10; &lt;br&gt;&#10;&#10; &lt;p&gt;&lt;img src="good-news-everybody.jpg" alt="Good News"&gt;&#10;Chet &lt;a href="https://x.com/ChetHusk/status/2119927980285931693" target="_blank" rel="noopener"&gt;reached out to me&lt;/a&gt;&#10; right after I published this post and shared the good news that the .NET SDK &lt;a href="https://learn.microsoft.com/en-us/dotnet/core/containers/publish-configuration#multi-architecture-images" target="_blank" rel="noopener"&gt;now supports multiple architectures in a single build&lt;/a&gt;&#10;.&lt;/p&gt;&#10;&lt;p&gt;Here&amp;rsquo;s my older example but using a single build for both architectures at the same time:&lt;/p&gt;&#10;&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#282a36;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-pwsh" data-lang="pwsh"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;dotnet publish ./MyCoolApp.csproj \&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; -t:PublishContainer \&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; -p PublishProfile=DefaultContainer \&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; -p ContainerBaseImage=&lt;span style="color:#f1fa8c"&gt;&amp;#34;mcr.microsoft.com/dotnet/aspnet:10.0&amp;#34;&lt;/span&gt; \&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; -p ContainerRegistry=&lt;span style="color:#f1fa8c"&gt;&amp;#34;docker.io&amp;#34;&lt;/span&gt; \&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; -p ContainerRepository=&lt;span style="color:#f1fa8c"&gt;&amp;#34;lancemccarthy/my-cool-app&amp;#34;&lt;/span&gt; \&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; -p ContainerImageTag=&lt;span style="color:#f1fa8c"&gt;&amp;#34;latest-arm64&amp;#34;&lt;/span&gt; \&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; -p ContainerRuntimeIdentifiers=&lt;span style="color:#f1fa8c"&gt;&amp;#34;linux-x64;linux-arm64&amp;#34;&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Notice we&amp;rsquo;re using &lt;code&gt;ContainerRuntimeIdentifiers=&amp;quot;linux-x64;linux-arm64&amp;quot;&lt;/code&gt; instead of &lt;code&gt;--arch &amp;quot;x64&amp;quot;&lt;/code&gt; for one build and &lt;code&gt;--arch &amp;quot;arm64&amp;quot;&lt;/code&gt; for the other build? That means all of the stuff I shopwed you below is no longer needed.&lt;/p&gt;&#10;&#10; &lt;/blockquote&gt;</description></item></channel></rss>