Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/355.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python 无法生成docker compose up-获取错误系统找不到指定的路径_Python_Docker Compose_Protractor_Dockerfile - Fatal编程技术网

Python 无法生成docker compose up-获取错误系统找不到指定的路径

Python 无法生成docker compose up-获取错误系统找不到指定的路径,python,docker-compose,protractor,dockerfile,Python,Docker Compose,Protractor,Dockerfile,我有两个e2e自动化框架,一个是基于python的,另一个是基于量角器的。我需要编写一个docker compose文件,在不同的容器中运行这两个项目,并将报告及其控制台获取到本地系统 下面是我的docker-compose.yml文件的内容 version: '3' services: e2e-Tests: build: ./c8y/DockerFile image: e2etests command: npm run e2e container_name:

我有两个e2e自动化框架,一个是基于python的,另一个是基于量角器的。我需要编写一个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 up时,出现以下错误:

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
。我的问题就这么简单。

我的问题与注册表访问问题有关。现在可以了。

您具体的技术问题是什么?我是这方面的初学者。查阅了docker compose教程,但无法了解如何从上述问题陈述开始。更新的描述。我不完全确定这里的问题是什么,部分原因是终端输出中的错误被掩盖了。请参阅行
无法获取标准输出的控制台模式…
?这就是导致错误被掩盖的原因。当我在Ubuntu和WSL2中运行它时,我没有发现这个问题。最好能完整地看到错误的内容。请在问题中添加更多描述。虽然答案可能是正确的解决方案,但还不清楚发生了什么,需要一些努力才能看到
f
vs
f