title: How can docker-compose be used to build Dockerfiles?
body: <p>I have such structure :</p>
  <p><a href="https://i.stack.imgur.com/aXxQt.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/aXxQt.png" alt="enter image description here" /></a></p>
  <p>In my Makefile, I build the dockerfile:</p>
  <pre><code>sudo docker build --build-arg PHP_VERSION=7.4 -t kaiza/image-php74 - &lt; dockerfile/Dockerfile.php
  </code></pre>
  <p>And <em>kaiza/image-php74</em> is well created locally, if i do <code>docker images</code>, i get:</p>
  <p><a href="https://i.stack.imgur.com/krxEJ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/krxEJ.png" alt="enter image description here" /></a></p>
  <p>Then, in my docker-compose.php74.yml :</p>
  <pre><code>version: '2.4'
  
  services:
    php7.4:
      image: &quot;kaiza/image-php74&quot;
      container_name: &quot;kz-php74&quot;
      hostname: &quot;kz-php74&quot;
      user: 1000:1000
  ...
  </code></pre>
  <p>But, when I run it</p>
  <pre><code>docker-compose -f docker-compose/php/docker-compose.php74.yml up --build -d
  </code></pre>
  <p>I get this error :</p>
  <p><em><strong>&quot;pull access denied for kaiza/image-php74, repository does not exist or may require 'docker login': denied: requested access to the resource is denied&quot;</strong></em></p>
  <p>Anyone have any idea how I can solve this without going through the <strong>registry</strong> solution (to keep everything local)?</p>
  <p>Thanks.</p>