无法在 windows 容器上装载文件

Can't mount file on windows container

当我尝试将配置文件挂载到 docker-compose.yml 文件时:

version: '3.4'
services: 
    myService:
    ...
    volumes:
        - c:\DOCKER_DATA\myService.config:c:\MyService.exe.config

我得到:

Cannot create container for service myService: invalid volume specification: 'c:\DOCKER_DATA\myService.config:c:\myService.exe.config:rw': invalid mount config for type "bind": source path must be a directory

目前,windows 容器不支持此功能 here