title: Docker Buildx Cannot Pull From Local for Inherited Image
body: <p>I have 2 Dockerfiles on my Host Machine ( Ubuntu 20.04 ). I am running docker-ce version Docker version 19.03.12, build 48a66213fe with Experimental Features enabled. I am able to build each of them with &quot;docker buildx&quot; for the ARM architecture and successfully run them on my embedded Linux ARM board.</p>
  <p>Dockerfile 1:</p>
  <pre><code>FROM python:3.8-slim-buster
  
  COPY git /home/git
  
  WORKDIR /home
  
  RUN apt-get update -y &amp;&amp; apt-get --no-install-recommends install build-essential pkg-config libzmq5 -y &amp;&amp; \
      cd git &amp;&amp; python3 setup.py install &amp;&amp; apt remove --purge build-essential pkg-config -y &amp;&amp; \
      apt auto-remove -y &amp;&amp; apt-get clean -y &amp;&amp; rm -rf /var/lib/apt/lists/*
  
  ADD publisher.py /home/publisher.py
  </code></pre>
  <p>Dockerfile 2:</p>
  <pre><code>FROM python:3.8-slim-buster
  
  COPY git /home/git
  
  WORKDIR /home
  
  RUN apt-get update -y &amp;&amp; apt-get --no-install-recommends install build-essential pkg-config libzmq5 -y &amp;&amp; \
      cd git &amp;&amp; python3 setup.py install &amp;&amp; apt remove --purge build-essential pkg-config -y &amp;&amp; \
      apt auto-remove -y &amp;&amp; apt-get clean -y &amp;&amp; rm -rf /var/lib/apt/lists/*
  
  ADD subscriber.py /home/subscriber.py
  </code></pre>
  <p>Build process to create ARM compatible image on Host:</p>
  <pre><code>docker buildx create --name builder || true
  docker buildx use builder
  docker buildx build --platform linux/arm/v7 -t &quot;company-publisher:v1.3&quot; . --load
  docker save company-publisher:v1.3 &gt; company-publisher-v1.3.tar
  </code></pre>
  <p>Loading the image on the ARM:</p>
  <pre><code>docker load &lt; ./company-publisher-v1.3.tar
  </code></pre>
  <p>The steps are same for the subsriber.</p>
  <p>Since the images are basically the same, I wanted to change the publisher Dockerfile to the following:</p>
  <pre><code>FROM company-subscriber:v1.3
  
  ADD publisher.py /home/publisher.py
  </code></pre>
  <p>Docker images shows that it is there locally:</p>
  <pre><code>REPOSITORY                   TAG                 IMAGE ID            CREATED             SIZE
  company-subscriber          v1.3                d2002fa18a8d        9 hours ago         121MB
  </code></pre>
  <p>But I get the error shown below - It ALWAYS tries to pull from docker.io ( which obviously does not have the image I am trying to inherit from ):</p>
  <pre><code>docker buildx build --platform linux/arm/v7 -t &quot;company-publisher:v1.3&quot; . --load
  [+] Building 1.5s (5/6)                                                                                                                                                                                              
   =&gt; [internal] load .dockerignore                                                                                                                                                                               0.0s
   =&gt; =&gt; transferring context: 2B                                                                                                                                                                                 0.0s
   =&gt; [internal] load build definition from Dockerfile                                                                                                                                                            0.0s
   =&gt; =&gt; transferring dockerfile: 104B                                                                                                                                                                            0.0s
   =&gt; ERROR [internal] load metadata for docker.io/library/company-subscriber:v1.3                                                                                                                               0.8s
   =&gt; [internal] load build context                                                                                                                                                                               0.0s
   =&gt; =&gt; transferring context: 34B                                                                                                                                                                                0.0s
   =&gt; ERROR [1/2] FROM docker.io/library/company-subscriber:v1.3                                                                                                                                                 0.7s
   =&gt; =&gt; resolve docker.io/library/company-subscriber:v1.3                                                                                                                                                       0.7s
  ------
   &gt; [internal] load metadata for docker.io/library/company-subscriber:v1.3:
  ------
  ------
   &gt; [1/2] FROM docker.io/library/company-subscriber:v1.3:
  ------
  failed to solve: rpc error: code = Unknown desc = failed to load cache key: pull access denied, repository does not exist or may require authorization: server message: insufficient_scope: authorization failed
  </code></pre>
  <p>How can I get buildx to work with a local image? Thanks.</p>