title: Docker-compose tagging and pushing
body: <p>I have a few docker containers that I try to sync with <code>docker-compose</code> (currently are being run by bash scripts). I'm looking for a way to tag and push them to our ec2 based dockerhub (private server).</p>
  
  <p>Using simply <code>docker</code> we did something like this (for each container):</p>
  
  <pre><code>$ docker build -f someDockerfile -t some
  $ docker tag some &lt;docker_hub_server&gt;/some
  $ docker push &lt;docker_hub_server&gt;/some
  </code></pre>
  
  <p>I'm trying to replicate this in <code>docker-compose</code>. I tried a few things but this one seems close to working (but didn't work of course):</p>
  
  <blockquote>
    <p>docker-compose.yml:</p>
  </blockquote>
  
  <pre><code>version: '3'
  services:
    some:
      container_name:some
      image: some:&lt;docker_hub_server&gt;/some
  </code></pre>
  
  <p>But when i run:</p>
  
  <pre><code>$ docker-compose push
  </code></pre>
  
  <p>I get: </p>
  
  <pre><code>Pushing some (base:&lt;docker_hub_server&gt;/base:latest)...
  ERROR: invalid reference format
  </code></pre>
  
  <p>Any ideas on how I can tag and push my containers?</p>
  
  <p>p.s.: I know that this is not the way <code>docker-compose</code> is meant to be used, but I also know it's possible and it fits my needs.</p>