我的代码构建正常,但是当我运行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.
version: '3'
services:
webapp:
build: ./Front
volumes:
- ./Front:./dFront
ports:
- 5001:8080
COMPOSE_CONVERT_WINDOWS_PATHS=0
COMPOSE_CONVERT_WINDOWS_PATHS=1
- ./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]}