Running a docker image on Windows gives the error oci runtime error exec bash executable file not found in PATH

0 votes

I'm running Docker toolbox on Windows

I've built an image which works properly on my Mac OS but gets bugged on Windows.

When I create a machine and try to run the container from image, I do:

docker run -it myRepo:myTag bash

which gives me the following error:

"Error response from daemon: oci runtime error: exec: "bash": executable file not found in $PATH."

I use the MINGW64 shell.

Does anyone have a soln to this?

Thank you in advance.

Sep 27, 2018 in Docker by Sophie may
• 10,550 points

1 answer to this question.

0 votes

I also use MINGW64. This is what I get using nginx as example:

  $docker run -it nginx bash
  cannot enable tty mode on non tty input

I can’t seem to open tty using MINGW64.

But try this:

  $docker run -i nginx bash

Just run ls and it should work inside your container.

answered Sep 27, 2018 by Tyrion anex
• 8,670 points

Related Questions In Docker

0 votes
7 answers

docker: executable file not found in $PATH

try to build the image with --no-cache. I ...READ MORE

answered Nov 1, 2020 in Docker by Deeptesh Agrawal
0 votes
1 answer
0 votes
2 answers

How do I fix the “no space left on device” error in docker?

Try cleaning up: $ docker volume rm $(docker ...READ MORE

answered Aug 14, 2019 in Docker by Sirajul
• 59,070 points
+2 votes
1 answer
+2 votes
1 answer

Deploy Docker Containers from Docker Cloud

To solve this problem, I followed advice ...READ MORE

answered Sep 3, 2018 in AWS by Priyaj
• 58,140 points
+1 vote
7 answers

How to connect to a Docker container running mysql on Windows 10?

Avoid using bind_address in your my.cnf file. I don't ...READ MORE

answered Apr 25, 2019 in Docker by Haseeb