title: From Golang, how to build/run a docker-compose project?
body: <p>I would like to run <strong>docker-compose</strong> projects from Golang <strong>using the docker package</strong> by providing the docker-compose.yml file.</p>
  <p>Following the example from <a href="https://docs.docker.com/engine/api/sdk/examples/" rel="nofollow noreferrer">https://docs.docker.com/engine/api/sdk/examples/</a>
  I know how to create and run individual containers using Golang, but is there a way to run docker-compose projects from the Golang docker library?</p>
  <p>I know that I can do something like this</p>
  <pre><code>import &quot;os/exec&quot;
  exec.Command(&quot;docker-compose&quot;,&quot;up&quot;)
  </code></pre>
  <p>but I would like this to happen from the docker package instead.</p>