Trying to run Docker resulted in exit code 127

I am trying to run a certain application in windows that uses docker. Since the application is a shell script, I use the cygwin terminal. As am new to docker, I dont have a clear Idea as to how it works.

Using boot2docker, I have a docker terminal open in windows 7 and a cygwin terminal to run the script.

  • Cannot mount data volume in Docker with Windows
  • Specify docker engine version with docker machine
  • How to copy file from host to container using Dockerfile
  • Not enough ram to run whole docker-compose stack
  • Where is the install location of the Windows Boot2Docker Image?
  • mesos slave failed to excute docker command
  • But when I run the script, say

       ./xyz init

    I get the following error

        trying to run docker resulted in exit code 127

    Can you please tell me what are the basic first aid I should go through to resolve this?

    The application is obtained from, called vmx. The information about the application is here.

    Your help is much appreciated.

  • docker nginx:latest image - content on docker host not changing
  • Why does GCR's container registry ignore the _catalog pagination parameters
  • Docker - copy file from container to host
  • mysql_install_db in Docker container returns error
  • docker: Says connection refused when attempting to connect to a published port
  • How to docker container requirements network from host
  • One Solution collect form web for “Trying to run Docker resulted in exit code 127”

    I think the 127 means docker was not found on the path. Similar question. On windows docker will only work inside the boot2docker vm so if you are running the script in cygwin it would not work. You must ssh into the boot2docker vm and run your commands there.

    Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.