<pre><code>docker: Error response form daemon: image witn reference qwerty22/kube-kompose:pok-0 was found but does not match the specified platform: wanted windows/amd64, actula : linux/arm64.
</code></pre>
<p>This was new to me. I thought Docker/standard images are &quot;universal&quot;.  But now it seems that you need to build an image for each platform - to run on ?</p>
<p>Example image was kubernetes-kompose from [https://github.com/kubernetes/kompose]</p>
<p>EDIT: I was trying to run that image on Win 10 and Docker desktop.</p>
<p>So the question is: Can I build a Docker image with my Mac, push the image to Docker Hub, pull image to a Win 10, and run it there?</p>
<p>I did not seem to succeed on that.</p>

catch22
<p>The OS architecture of the build and the run must be compatible.</p>
<p>You should turn on Linux containers on Docker desktop. To do that, right-click on Docker desktop icon and select <code>Switch to Linux Containers</code> from the menu.
For more details check <a href="https://learn.microsoft.com/en-us/virtualization/windowscontainers/quick-start/quick-start-windows-10-linux" rel="nofollow noreferrer">this guide</a>.</p>
<p>Another way is to build the image on your Mac M1 for <code>amd64</code> like this:</p>
<pre><code>docker buildx build --platform linux/amd64 --push -t &lt;registry&gt;/&lt;project-id&gt;/&lt;image&gt;
</code></pre>
<p>because the docker images built with Apple Silicon are ARM-based architecture and this can create issues when deploying the images to a Linux or Windows-based <code>amd64</code> environment.</p>
