LinuxGSM-Docker
LinuxGSM-Docker copied to clipboard
When running docker image and running container it shows errors in entrypoint.sh
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 () {
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.