/ usr / bin / env:‘python \ r’:没有这样的文件或目录[重复]

问题描述 投票:0回答:1

我是Docker的新手,因此决定采用Play with docker classroom (Application Containerization and Microservice Orchestration)的入门指南。我在PC上尝试了本教程并为Windows安装了docker。在运行脚本Step 1: Containerized Link Extractor Scriptdocker container run -it --rm linkextractor:step1 http://example.com/中出现错误

IT-KEVIN@IT-KEVIN MINGW64 ~/linkextractor (step1) $ docker container run -it --rm linkextractor:step1 http://example.com/ /usr/bin/env: ‘python\r’: No such file or directory

我该如何解决错误?

python docker git-bash docker-for-windows
1个回答
0
投票

[\r字符通常表示您在编辑器中混入了different newline formats

您需要编辑linkextractor脚本并将其换行符更改为Linux格式。

© www.soinside.com 2019 - 2024. All rights reserved.