title: docker-compose up -d <name>; No such service: <name>
body: <p>I have built an image using my dockerfile with the following command:</p>
  
  <pre><code>docker build –t &lt;name&gt;:0.2.34 .
  </code></pre>
  
  <p>and then I have tried to use my docker-compose.yml:</p>
  
  <pre><code>strat:
    container_name: &lt;name&gt;
    image: &lt;name&gt;:0.2.34
    restart: always
    command: bash -lc 'blah'
  </code></pre>
  
  <p>to bring up my container:</p>
  
  <pre><code>docker-compose up -d &lt;name&gt;
  </code></pre>
  
  <p>Which gives me the following 'error':</p>
  
  <pre><code>No such service: &lt;name&gt;
  </code></pre>