Docker Community Forums

Share and learn in the Docker community.

Docker run errors out

beta

(Djbc3tech) #1

Expected behavior

docker run should result in the target image running within a container

Actual behavior

docker run errors out with:

...

Getting CA Private Key
writing RSA key
Done

: not foundt.sh: 3: ./entrypoint.sh:
: not foundt.sh: 5: ./entrypoint.sh: /app/approot/docker-web

Information

Distro: Docker for Windows v1.11.1, build 5604cbe
DockerDebugInfo output can be found here


(Djbc3tech) #2

The problem here ended up being settings in my Git repo. Since the repo is on a Windows machine, my core.autocrlf setting was not set to false as it should have been.

This resulted in CR characters being appended to each line of the .sh scripts being run inside the Docker machine. Since that machine is Linux this caused problems.

PSA: SET core-autocrlf=false ON ANY REPO BEING DEPLOYED TO LINUX DOCKER MACHINES FROM A WINDOWS MACHINE

:slight_smile: