使用18.06.0-ce-win72(在Windows 10上)
使用docker-compose
定义了一个音量:
version: '3'
...
services:
<my-service>:
volumes:
- './secrets:/app/secrets'
安装定义(泊坞窗检查)看起来正确:
"Mounts": [
{
"Type": "bind",
"Source": "<path to directory>/secrets",
"Destination": "/app/secrets",
"Mode": "rw",
"RW": true,
"Propagation": "rprivate"
}
],
当docker容器启动时,会创建 secrets 目录。但是,本地文件不存在于容器秘密地图中。
问题是如何调试它?