V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
mattx
V2EX  ›  Docker

docker for windows 挂载卷 大小写问题

  •  
  •   mattx · 2019-04-05 11:11:49 +08:00 · 4271 次点击
    这是一个创建于 1819 天前的主题,其中的信息可能已经有所发展或是发生改变。

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

    2 条回复    2019-04-05 14:03:59 +08:00
    piapia
        1
    piapia  
       2019-04-05 12:53:30 +08:00
    把你的目录设置为大小写敏感的目录。参考这个 https://blog.walterlv.com/post/case-sensitive-in-windows-file-system.html
    mattx
        2
    mattx  
    OP
       2019-04-05 14:03:59 +08:00
    @piapia 这样在 docker 里面 import xx.so 会 cannot open shared object file: No such file or directory
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   3424 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 11:14 · PVG 19:14 · LAX 04:14 · JFK 07:14
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.