The same docker file, build image host is windows, reported an error, host is ubuntu, successful, what is the reason?

  docker, question
  1. Just like the topic.
  2. Docker server version is the same-Docker version 17.12.0-ce, build c97c6d6
  3. Log of problems

clipboard.png

I once manually entered this temporary container and saw that the file existed.
Manual operation/bin/bash $SCRIPTS_PATH/provision.shThere is no problem.
Manual operation/bin/sh $SCRIPTS_PATH/provision.shYou will see the same log as in the above picture.

However, there is no such problem in the docker of linux host.

Ask questions

The problem has been found to be caused by line breaks.