LinuxGSM-Docker icon indicating copy to clipboard operation
LinuxGSM-Docker copied to clipboard

When running docker image and running container it shows errors in entrypoint.sh

Open rodrigogregorioneri opened this issue 1 year ago • 1 comments

When running docker image and running container it shows errors in entrypoint.sh file:

entrypoint.sh: line 2: $'\r': command not found entrypoint.sh: line 3: syntax error near unexpected token $'{\r'' 'ntrypoint.sh: line 3: exit_handler () {

rodrigogregorioneri avatar Jul 27 '22 20:07 rodrigogregorioneri

When running docker image and running container it shows errors in entrypoint.sh file:

entrypoint.sh: line 2: $'\r': command not found entrypoint.sh: line 3: syntax error near unexpected token $'{\r'' 'ntrypoint.sh: line 3: exit_handler () {

Convert CR-LF to LF with something like VScode and rebuild the image. That solved the problem for me.

csabca83 avatar Dec 17 '22 10:12 csabca83