How to mount a single file in a volume

后端 未结 14 1059
隐瞒了意图╮
隐瞒了意图╮ 2020-11-27 10:16

I am trying to dockerize a PHP application. In the dockerfile, I download the archive, extract it, etc.

Everything works fine. However, if a new version gets released

14条回答
  •  一向
    一向 (楼主)
    2020-11-27 10:46

    I have same issue on my Windows 8.1

    It turned out that it was due to case-sensitivity of path. I called docker-compose up from directory cd /c/users/alex/ and inside container a file was turned into directory.

    But when I did cd /c/Users/alex/ (not Users capitalized) and called docker-compose up from there, it worked.

    In my system both Users dir and Alex dir are capitalized, though it seems like only Users dir matter.

提交回复
热议问题