title: Run docker-compose from Docker container
body: <p>I have <code>Jenkins</code> running inside a <code>Docker</code> container with <code>docker.sock</code> mounted. Can I call <code>docker-compose</code> from this container to run a service on host machine? I tried executing installation script from within a container, but it keeps saying</p>
  
  <blockquote>
    <p>"no such file or directory".</p>
  </blockquote>
  
  <pre><code>docker exec jenkins curl -L "https://github.com/docker/compose/releases/download/1.23.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
  
  docker exec jenkins chmod +x /usr/local/bin/docker-compose
  </code></pre>