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

前端 未结 4 1841
一生所求
一生所求 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:15

    you know, your question turns to be a useful answer to the same issue I have. I used docker inspect and then it gave me the location that I should look into. specifically in these lines:

    HostConfig": {
                "Binds": [
    ....
    ...
    ],
    

提交回复
热议问题