title: Is it possible to build an `nvidia/cuda`-based image on a server without a GPU?
body: <p>I have a <code>Dockerfile</code> based on <a href="https://hub.docker.com/r/nvidia/cuda/" rel="noreferrer"><code>nvidia/cuda</code></a> like so:</p>
  <pre><code>FROM nvidia/cuda:11.0-base
  
  ...
  </code></pre>
  <p>I want to be able to build this <code>Dockerfile</code> on our CI server that does not have a Nvidia GPU. When I try to do that, I get this error:</p>
  <pre><code>------
   &gt; [1/6] FROM docker.io/nvidia/cuda:11.0-base:
  ------
  failed to solve with frontend dockerfile.v0: failed to solve with frontend gateway.v0: rpc error: code = Unknown desc = failed to build LLB: failed to load cache key: docker.io/nvidia/cuda:11.0-base not found
  </code></pre>
  <p>The error says that the image is not found, but I think this is a bit misleading. I've been able to isolate the problem to whether or not a GPU is present.</p>
  <p>When building this <code>Dockerfile</code> on a server with a Nvidia GPU, I don't get this error. Is it possible to build a <code>Dockerfile</code> based on an <code>nvidia/cuda</code> image on a server without a GPU? This would save costs on our CI server.</p>
  <p>I plan to deploy the resulting docker container on a server that does have a GPU so, in other words, is it possible to defer the presence of a GPU to run time instead of build time?</p>