Trying to run Docker resulted in exit code 127

Lakshmi Narayanan

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.

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 vision.ai, called vmx. The information about the application is here.

https://docs.vision.ai/

Your help is much appreciated.

Al-Mothafar

I got almost the same issue, the problem was simply in windows ending in that file, it was using CRLF instead of LF, change it to LF and it might work (using Notepad++, IntelliJ or Visual Code), referring to these answers:

env: bash\r: No such file or directory

How do I set all files in a subdirectory to use a specific eol using gitattributes?

So my .gitattributes file now is like this:

* text=auto
/docker/* text eol=lf
/ci/* text eol=lf
/sbt text eol=lf
/docker-*.sh text eol=lf
/sbt-dist/bin/*.bash text eol=lf
/sbt-dist/bin/sbt text eol=lf

These attributes because I have play framework project deployed in docker.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

run java code on docker

Make Error 127 when running trying to compile code

Eclipse exits automatically exit code 127

Running Python from CLion gives "Processed finished with exit code 127"

Docker compose containers fail and exit with code 127 missing /bin/env bash

Docker stalls on run - Wait Condition Exit

exit code 127 and ': No such file or directory`

Exit Code 125 from Docker when Trying to Run Container Programmatically

Laravel Task schedule with python script "Exit Code: 127(Command not found)"

docker's service exit with code 'Exit 127' : The system cannot find the path specified

CLion says 'Process finished with exit code 127'

Docker: Error code 127 when executing shell script

Trying to port application to docker nanoserver container. Running exe fails with exit code -1073741515 (Dependency missing)

Docker run returning exit code 100 or 51

I am trying to return a nonzero exit code on an Xcode Run Script build phase, but it's not working

Exit code 127 in cygwin64

command || run code and exit

Eclipse JVM Exit Code 127 when RTC 'Jazz Administration' perspective was opened

Systemd start script fails with exit code 127

Docker exits with a exit code on starting

dpkg: error exit status 127

Trying to run a function in a game loop, and then exit that function and run a separate function

CircleCI 2.0 - exit code 127, bundle command not found

AWS Code Pipeline Error: Script at specified location: scripts/install_dependencies run as user oracle failed with exit code 127

Centos docker-compose is showing exit code 0 but still it doesn't run

Errors form my k8s CornJob: Pod errors: Error with exit code 127

why Spring tool suite IDE shows error message as "JVM terminated. Exit code=127"

ESP-IDF Github Actions: docker: command not found Error: Process completed with exit code 127

Docker run does not exit

TOP Ranking

  1. 1

    Failed to listen on localhost:8000 (reason: Cannot assign requested address)

  2. 2

    pump.io port in URL

  3. 3

    How to import an asset in swift using Bundle.main.path() in a react-native native module

  4. 4

    Loopback Error: connect ECONNREFUSED 127.0.0.1:3306 (MAMP)

  5. 5

    Compiler error CS0246 (type or namespace not found) on using Ninject in ASP.NET vNext

  6. 6

    BigQuery - concatenate ignoring NULL

  7. 7

    Spring Boot JPA PostgreSQL Web App - Internal Authentication Error

  8. 8

    ggplotly no applicable method for 'plotly_build' applied to an object of class "NULL" if statements

  9. 9

    ngClass error (Can't bind ngClass since it isn't a known property of div) in Angular 11.0.3

  10. 10

    How to remove the extra space from right in a webview?

  11. 11

    Change dd-mm-yyyy date format of dataframe date column to yyyy-mm-dd

  12. 12

    Jquery different data trapped from direct mousedown event and simulation via $(this).trigger('mousedown');

  13. 13

    maven-jaxb2-plugin cannot generate classes due to two declarations cause a collision in ObjectFactory class

  14. 14

    java.lang.NullPointerException: Cannot read the array length because "<local3>" is null

  15. 15

    How to use merge windows unallocated space into Ubuntu using GParted?

  16. 16

    flutter: dropdown item programmatically unselect problem

  17. 17

    Pandas - check if dataframe has negative value in any column

  18. 18

    Nuget add packages gives access denied errors

  19. 19

    Can't pre-populate phone number and message body in SMS link on iPhones when SMS app is not running in the background

  20. 20

    Generate random UUIDv4 with Elm

  21. 21

    Client secret not provided in request error with Keycloak

HotTag

Archive