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,620 points
2,291 views

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
  ls
  bin

Just run ls and it should work inside your container.

answered Sep 27, 2018 by Tyrion anex
• 8,700 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
62,704 views
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,230 points
12,673 views
+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,020 points
2,714 views
+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
12,631 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP