我正在尝试 运行 我的 docker 但我收到此错误
I am trying to run my docker but i'm getting this error
docker文件
FROM python:3.10
ADD main.py .
ADD safe.py .
RUN pip install pyTelegramBotAPI
CMD [ "python", "./main.py", "safe" ]
这是我在 运行 我的 docker
时遇到的错误
docker: Error response from daemon: OCI runtime create failed: container_linux.go:380: starting container process caused: exec: ".": executable file not found in $PATH: unknown.
将 ADD
更改为 COPY
似乎已解决问题。
docker文件
FROM python:3.10
ADD main.py .
ADD safe.py .
RUN pip install pyTelegramBotAPI
CMD [ "python", "./main.py", "safe" ]
这是我在 运行 我的 docker
时遇到的错误docker: Error response from daemon: OCI runtime create failed: container_linux.go:380: starting container process caused: exec: ".": executable file not found in $PATH: unknown.
将 ADD
更改为 COPY
似乎已解决问题。