File mode of mounted files

While I’m having no trouble mounting a file from Windows 10 to a Linux container, the file mode in the container is 0755 and that won’t work (it’s an ssh pem file and OpenSSH refuses to use it). I don’t see a way to control what file mode is given to files (or directories for that matter) when using volumes. I can’t embed the file into the image. Thoughts?

  • Ben