Docker Community Forums

Share and learn in the Docker community.

Problem starting docker container

I’m trying to start a container from my image, but I get an access error on line 38 in the file.

sudo docker run -it --name hw9_ivan2 -p 4000:8080 hw-l9:1
/ 38: exec: hw9/result: Permission denied

Tried looking for the file to see this 38 line but never found it. How can this be fixed? I am also attaching the Dockerfile code:

FROM python:3.9.6 as build
RUN python3 -o result

FROM nginx:1.21.1
WORKDIR hw9/result
COPY --from=build ./hw9 ./hw9/result

CMD ["./hw9/result"]

I work in WSL Ubuntu on Windows