Get docker-compose.yml file location from running container?

前端 未结 4 1905
一生所求
一生所求 2021-02-03 19:57

I have a few running docker containers created by executing docker-compose up.

Is there any way to get the exact file path of the corresponding docker-c

4条回答
  •  天涯浪人
    2021-02-03 20:22

    It is not currently possible.

    As an alternative might find the following helpful:

    • Use docker ps -a | grep
    • Use locate docker-compose.yml and find the one that you want
    • Use docker-compose restart (do docker-compose to see option)

提交回复
热议问题