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
• 9,050 points
186 views

1 answer to this question.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
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,280 points

Related Questions In Docker

0 votes
6 answers

docker: executable file not found in $PATH

file not found in $PATH READ MORE

answered May 9 in Docker by anonymous
4,593 views
0 votes
2 answers
0 votes
1 answer
0 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
• 56,100 points
56 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 in Docker by Haseeb
1,185 views

© 2018 Brain4ce Education Solutions Pvt. Ltd. All rights Reserved.
"PMP®","PMI®", "PMI-ACP®" and "PMBOK®" are registered marks of the Project Management Institute, Inc. MongoDB®, Mongo and the leaf logo are the registered trademarks of MongoDB, Inc.