title: Docker: Uses an image, skipping (docker-compose)
body: <p>I am currently trying out this tutorial for <code>node express</code> with <code>mongodb</code>
  <a href="https://medium.com/@sunnykay/docker-development-workflow-node-express-mongo-4bb3b1f7eb1e" rel="noreferrer">https://medium.com/@sunnykay/docker-development-workflow-node-express-mongo-4bb3b1f7eb1e</a></p>
  <p>the first part works fine where to build the <code>docker-compose.yml</code>
  it works totally fine building it locally so I tried to tag it and push into my <code>dockerhub</code> to learn and try more.</p>
  <p>this is originally what's in the <code>yml</code> file followed by the tutorial</p>
  <pre><code>version: &quot;2&quot;
  services:
    web:
      build: .
      volumes:
        - ./:/app
      ports:
        - &quot;3000:3000&quot;
  </code></pre>
  <p>this works like a charm when I use <code>docker-compose build</code> and <code>docker-compose up</code></p>
  <p>so I tried to push it to my dockerhub and I also tag it as <code>node-test</code></p>
  <p>I then changed the <code>yml</code> file into</p>
  <pre><code>version: &quot;2&quot;
  services:
    web:
      image: &quot;et4891/node-test&quot;
      volumes:
        - ./:/app
      ports:
        - &quot;3000:3000&quot;
  </code></pre>
  <p>then I removed all images I have previously to make sure this also works...but when I run <code>docker-compose build</code>  I see this message <code>error: web uses an image, skipping</code> and nothing happens.</p>
  <p>I tried googling the error but nothing much I can find.</p>
  <p>Can someone please give me a hand?</p>
  <p>Thanks in advance</p>