title: How to extract docker-compose file from running docker start
body: <p>I have docker stack started with <code>docker stack deploy --compose-file ...</code>
  and later manually edited via Docker Portainer UI.</p>
  <p>I'd like to write a script that updates the docker image tag of one of the services.</p>
  <p>To do that I need to &quot;download&quot; the latest &quot;docker-compose&quot; stack definition however I cannot find the appropriate docker command.</p>
  <p>I do know that the best would be to stop changing stack manually and rely on its definition stored in git but unfortunately, it is not up to me.</p>
  <p>Please point me to the appropriate docker command or confirm that it is not available.</p>