卷规格错误,docker-compose up

时间:2018-04-05 00:19:08

标签: windows docker path docker-compose

我的代码构建正常,但是当我运行docker-compose up时,我收到此错误。

Creating app_webapp_1 ... error

ERROR: for app_webapp_1  Cannot create container for service webapp: invalid volume specification: 'C:\Users\Me\Path\App\Front:./dFront:rw'

ERROR: for webapp  Cannot create container for service webapp: invalid volume specification: 'C:\Users\Me\Path\App\Front:./dFront:rw'
ERROR: Encountered errors while bringing up the project.

配置

  • Windows 10最新版本的一切(稳定)
  • Windows容器(由于内存原因,我无法切换到linux容器)

搬运工-compose.yml

version: '3'

services:
  webapp:
    build: ./Front
    volumes:
      - ./Front:./dFront
    ports:
      - 5001:8080

我已经尝试过(并且没有用)

  • COMPOSE_CONVERT_WINDOWS_PATHS=0
  • COMPOSE_CONVERT_WINDOWS_PATHS=1
  • Abosute path:- ./Front:C:/Users/Me/Path/App/Front

最新导致不同的错误:

ERROR: for app_webapp_1  Cannot start service webapp: container d36a23d8e44193a16734d8c12f0cab4cc13d7d492671081d8b016795b1f79f8c encountered an error during CreateProcess: failure in a Windows system call: The system cannot find the file specified. (0x2) extra info: {"CommandLine":"npm start","WorkingDirectory":"C:\\dFront","Environment":{"NPM_CONFIG_LOGLEVEL":"info"},"CreateStdInPipe":true,"CreateStdOutPipe":true,"CreateStdErrPipe":true,"ConsoleSize":[0,0]}

0 个答案:

没有答案