【问题标题】:Can't mount file on windows container无法在 Windows 容器上挂载文件
【发布时间】:2019-11-15 03:32:56
【问题描述】:

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

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

我明白了:

无法为服务 myService 创建容器:卷规格无效:'c:\DOCKER_DATA\myService.config:c:\myService.exe.config:rw':类型“bind”的装载配置无效:源路径必须是目录

【问题讨论】:

    标签: docker docker-compose docker-container windows-container


    【解决方案1】:

    目前,here 发布的 Windows 容器不支持此功能。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-12-20
      • 1970-01-01
      • 2020-06-12
      • 2016-11-10
      相关资源
      最近更新 更多