Docker Error: OCI runtime create failed: runc create failed: unable to start container process: exec: ".": executable file not found in $PATH: unknown

Tanmay Chakraborty

I have created one flask app using yolo model. My app is using following libraries and I have stored them in requirements.txt file. pandas numpy matplotlib seaborn streamlit boto3 opencv-python ultralytics flask easyocr

I am specifying my Dockerfile code below

COPY . /application
WORKDIR /application


RUN apt-get update && apt-get install ffmpeg libsm6 libxext6 unzip -y && pip install -r requirements.txt
CMD ["python", "application.py"]`

Now when I was trying to pushing the code in docker hub. It had been pushed properly. My flask app was running on port 8080 and host is 0.0.0.0

After pushing it into docker hub I was running the following code in my git bash by using the below command. docker run -it -p 8080:8080 -t <container_name> .

I was getting the following error. docker: Error response from daemon: failed to create task for container: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: exec: ".": executable file not found in $PATH: unknown.

I did not understand the issue how can i resolve it?

I tried to install ffmpeg and some other stuffs inside docker. I tried to follow some stack over flow and github community discussions but still it was not solved as those discussions are not perfectly matching with my current situation.

renzev

To run the command specified in the Dockerfile (i.e. python application.py):

docker run -p 8080:8080 <image_name>

To run the command specified in the Dockerfile and see its output as it runs:

docker run -p 8080:8080 -t <image_name>

To run an interactive shell inside the docker container (e.g. for debugging):

docker run -p 8080:8080 -ti <image_name> /bin/sh

The command that you provided tries to run a program called ., which does not exist. The t flag is used to allocate a terminal to the container, while the i flag makes it interactive.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

OCI runtime create failed: container_linux.go:349: starting container process caused "exec: \"xxxx\": executable file not found in $PATH": unknown

OCI runtime create failed: container_linux.go:348: starting container process caused "exec: \"-it\": executable file not found in $PATH":unknown

runc create failed: unable to start container process: exec: no such file or directory

Error response from daemon: failed to create task for container: failed to create shim task: OCI runtime create failed: runc create failed

OCI runtime exec failed: exec failed: unable to start container process: open /dev/pts/0: operation not permitted: unknown

exec: "docker-runc": executable file not found in $PATH: unknown

Error running docker container: starting container process caused "exec: \"python\": executable file not found in $PATH": unknown

Docker: ERROR Cannot start service nginx: OCI runtime create failed

Error response from daemon: OCI runtime create failed: container_linux.go:380: starting container process caused: exec: "python":

Docker build error OCI runtime create failed

Docker error failed to create shim: OCI runtime create failed: container_linux.go:380:

docker OCI runtime create failed

Docker Error response from daemon: OCI runtime create failed container_linux.go:380: starting container process caused

docker compose oci runtime error, executable file not found in $PATH

Docker: Cannot start service app: OCI runtime create failed:

Docker build error OCI runtime create failed "exec: \"/bin/bash\": stat /bin/bash

Docker Go image: starting container process caused: exec: "app": executable file not found in $PATH: unknown

docker-exec failed: "cd": executable file not found in $PATH

docker: Error response from daemon: OCI runtime create failed:

Docker stopped working with error message OCI runtime create failed

Docker Error response from daemon: OCI runtime create failed

Docker expose port - OCI runtime create failed

How to fix OCI runtime create failed in Docker

Received below error while starting docker container " Error response from daemon: OCI runtime create failed: container_linux.go:348"

CannotStartContainerError: ResourceInitializationError: failed to create new container runtime task: failed to create shim: OCI runtime create failed:

OCI runtime exec failed: exec failed: container_linux.go:344: starting container process

starting container process caused "exec: > \"exec\": executable file not found in $PATH": unknown

Can't restart docker container: OCI runtime create failed: container with id exist

Downloaded newer image - docker: Error response from daemon: OCI runtime create failed: container_linux.go:348: