Get docker-compose.yml file location from running container? : <p>I have a few running docker containers created by executing <code>docker-compose up</code>.</p>

<p>Is there any way to get the exact file path of the corresponding <em>docker-compose.yml</em> file used to start these containers, just by inspecting the running containers?</p>

<p>As far as I can see, <code>docker inspect CONTAINER_NAME</code> does not provide this information, nor does <em>docker-compose</em> provide a method to get compose-related information from a running container.</p>

<p>What I'd like to do in a script:</p>

<ul>
<li>list certain running containers on a docker host</li>
<li>get the corresponding <em>docker-compose.yml</em> file locations</li>
<li>use <em>docker-compose</em> to restart all containers of the corresponding docker-compose projects at once</li>
</ul>
