DEPARTED
DEPARTED

Reputation: 265

Docker read files from network drive with unicode characters in name

I have a .net application which runs in a Linux Docker conatainer. I have mounted a Windows folder via network share. Some file names contain Unicode characters (Georgian letters in my case) and I am unavailable to read those files as I am getting an exception:

System.Exception: 'Could not find file '/data/TEST/ტესტ 2024-04-15 173605.png'.'

Of course this file exists on disk. I have checked the mounted folder from Docker desktop and from the shell, and those files are displayed with question marks. I have also tested Directory.GetFiles(directory); and the same all files are with question marks. I think there is problem in mounting network drive. Here is my code for it:

volumes:
  sapvolume:
    driver: local
    driver_opts:
      type: cifs
      o: "username=administrator2,password=1234,vers=3.0"
      device: "//10.132.10.101/Attachments_Folder"

Upvotes: 0

Views: 41

Answers (0)

Related Questions