mattx
V2EX  ›  Docker

docker for windows 挂载卷 大小写问题

  •  
  •   mattx · Apr 5, 2019 · 4878 views
    This topic created in 2625 days ago, the information mentioned may be changed or developed.

    在 win10 上用了 docker for windows, 把代码目录通过-v 挂载进去, 发现这目录是不区分大小写的, 如果用 python import 这目录的代码, test.py Test.py 是一样的. 有人有解决办法么?, 改代码这路行不通, 需要改很多项目文件.

    2 replies    2019-04-05 14:03:59 +08:00
    piapia
        1
    piapia  
       Apr 5, 2019
    把你的目录设置为大小写敏感的目录。参考这个 https://blog.walterlv.com/post/case-sensitive-in-windows-file-system.html
    mattx
        2
    mattx  
    OP
       Apr 5, 2019
    @piapia 这样在 docker 里面 import xx.so 会 cannot open shared object file: No such file or directory
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   4474 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 50ms · UTC 04:07 · PVG 12:07 · LAX 21:07 · JFK 00:07
    ♥ Do have faith in what you're doing.