我是Docker的新手,因此决定采用Play with docker classroom (Application Containerization and Microservice Orchestration)的入门指南。我在PC上尝试了本教程并为Windows安装了docker。在运行脚本Step 1: Containerized Link Extractor Script的docker 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
我该如何解决错误?
[\r
字符通常表示您在编辑器中混入了different newline formats。
您需要编辑linkextractor
脚本并将其换行符更改为Linux格式。