[英]Not able to build docker-compose up - getting error The system cannot find the path specified
I have two e2e automation framework, one is python based other is protractor based.我有两个 e2e 自动化框架,一个是基于 python,另一个是基于 protractor。 I need to write a docker-compose file to run these two projects in different containers and fetch reports and their console to my local system.
我需要编写一个 docker-compose 文件来在不同的容器中运行这两个项目,并将报告及其控制台获取到我的本地系统。
below are the contents of my docker-compose.yml file以下是我的 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
When I run docker-compose up, I get the below error:当我运行 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
Try to rename: Dockerfile
instead of DockerFile
.尝试重命名:
Dockerfile
而不是DockerFile
。
Edit: When the docker file name is not provided explicitly, it will look for the file Dockerfile
with a small f
.编辑:当未明确提供 docker 文件名时,它将查找带有小
f
的文件Dockerfile
。 My issue was as simple that.我的问题就是这么简单。
My issue was related to registry access issues.我的问题与注册表访问问题有关。 It works fine now.
它现在工作正常。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.