I dont understand why i get this error: python: can't open file '/usr/src/app/run.py': [Errno 2] No such file or directory via dockerfile #574
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi everyone,
I'm trying to build a miner using Docker on my Raspberry Pi 5 and I'm running into some problems. I hope someone can help me out.
Here's the issue: I'm getting the following error message:
I haven't changed the Dockerfile, so it should be fine. Here are the steps I've taken:
example.py
, updating my username, password, and streamers, then saved the file asrun.py
.run.py
file is still in the main project directory (where the Dockerfile is located).docker build -t miner .
.docker run -it --rm miner
.However, I keep getting the error:
YouTube videos suggest that
run.py
just needs to be in the same directory as the Dockerfile. Here's the directory listing of my project:I also tried moving
run.py
to the/usr/src/app/
directory, but I still get the same error.Interestingly, if I try to run
run.py
directly with Python, I get a different error message:I'm new to Docker and still learning, but how can I get this container up and running?
Thanks to everyone reading this and to those who are looking into this problem.
Beta Was this translation helpful? Give feedback.
All reactions