在 docker 中为 Windows 和 Linux 选择公共绝对路径
Choosing common absolute path for Windows and Linux in docker
你好我有以下 problem.I 想要 运行 一个 .NET Core Application
和 docker.The 应用程序使用 config.json
文件来设置。
虽然 运行ning 在 Windows
中,但我只是为配置文件设置了一个绝对路径,例如
C:\Users\MyPC\Documents\App\config.json
一切正常。
当 运行 docker
我不知道在哪里复制 json
时,我可以为 config
文件设置什么绝对路径,这对两个操作都有效系统
P,S 在这种情况下,我是否被迫使用相对路径(应用程序文件夹)? ( Environment.GetCurrentDirectory
,Directory.GetParent
..等)
你好我有以下 problem.I 想要 运行 一个 .NET Core Application
和 docker.The 应用程序使用 config.json
文件来设置。
虽然 运行ning 在 Windows
中,但我只是为配置文件设置了一个绝对路径,例如
C:\Users\MyPC\Documents\App\config.json
一切正常。
当 运行 docker
我不知道在哪里复制 json
时,我可以为 config
文件设置什么绝对路径,这对两个操作都有效系统
P,S 在这种情况下,我是否被迫使用相对路径(应用程序文件夹)? ( Environment.GetCurrentDirectory
,Directory.GetParent
..等)