<p>I have the following skaffolding</p>

<pre><code>build:
  tagPolicy:
    sha256: {}
  artifacts:
    - image : sdk
      context: docker
      docker:
        dockerfile: Dockerfile.sdk
        buildArgs:
          CONFIGURATION: Debug
    - image : app
      context: docker
      docker:
        dockerfile: Dockerfile.app
        buildArgs:
          CONFIGURATION: Debug
    - image: azu
      context: rt/azu/src
      docker:
        dockerfile: Dockerfile.worker
        buildArgs:
          VERSION : Debug
</code></pre>

<p>The first two images are built just fine. Whereas the third fails. The second build depends on the first and the third depends on the second. However the third fails with <code>"MANIFEST_UNKNOWN: manifest unknown"</code> because it tries to retrieve it from docker hub. If I change the context of the third build to docker (which will make the building of the image fail) skaffold finds the local image. What can I do to keep the correct context and make skaffold aware that it shouldn't pull from docker hub but use the locally build image?</p>

<p><em>(Aside: It's difficult to help if you don't include your full <code>skaffold.yaml</code> and your <code>Dockerfile</code>s.  Just redact pieces that are private.)</em></p>
<p>Skaffold &quot;just&quot; orchestrates the builds and has no influence over how the underlying builders resolve images.  But Skaffold <em>does</em> instruct the underlying builders how the resulting image should be tagged.  Skaffold provides a set of <a href="https://skaffold.dev/docs/pipeline-stages/taggers/" rel="nofollow noreferrer"><em>tagging policies</em></a>.</p>
<p>So it sounds like your <code>rt/azu/src/Dockerfile.worker</code> has a <code>FROM</code> that is not referencing your <code>app</code> image — perhaps the image is being tagged differently than what you're referencing.  Skaffold's default tagger uses the git commit, resulting in image references like <code>app:v1.12.0-37-g6af3198f3-dirty</code>.</p>
<p>If my suspicion is true, then you'll want to use the <code>envTemplate</code> tagger so that your built images use a more controlled and predictable image tag that you can embed into your <code>Dockerfile</code>s.</p>
