![](/img/trans.png)
[英]Docker Compose Up gives "The system cannot find the file specified." error
[英]Not able to build docker-compose up - getting error The system cannot find the path specified
我有兩個 e2e 自動化框架,一個是基於 python,另一個是基於 protractor。 我需要編寫一個 docker-compose 文件來在不同的容器中運行這兩個項目,並將報告及其控制台獲取到我的本地系統。
以下是我的 docker-compose.yml 文件的內容
version: '3'
services:
e2e-Tests:
build: ./c8y/DockerFile
image: e2etests
command: npm run e2e
container_name: cn-e2eTests
py-Tests:
build: ./py/DockerFile
image: pytests
command: npm run e2e
container_name: cn-pyTests
當我運行 docker-compose 時,出現以下錯誤:
Building e2e-Tests
failed to get console mode for stdout: The handle is invalid.
[+] Building 0.0s (0/1)
[+] Building 0.0s (1/2) om sender: walk \\?\C:\Users\xxx\e2e\Dockerfile: The system cannot find the path specified.
=> ERROR [internal] load build definition from Dockerfile 0.0s
=> => transferring dockerfile: 105B 0.0s
------
> [internal] load build definition from Dockerfile:
------
ERROR: Service 'e2e-Tests' failed to build
嘗試重命名: Dockerfile
而不是DockerFile
。
編輯:當未明確提供 docker 文件名時,它將查找帶有小f
的文件Dockerfile
。 我的問題就是這么簡單。
我的問題與注冊表訪問問題有關。 它現在工作正常。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.