The same docker file, build image host is windows, error, and the host is ubuntu, success. What is the reason?

  1. as the title.
  2. docker server version is the same-- Docker version 17.12.0 Mae, build c97c6d6
  3. log of the problem

clipboard.png

I have manually entered this temporary container to see the existence of files.
there is no problem with running / bin/bash $SCRIPTS_PATH/provision.sh manually.
run / bin/sh $SCRIPTS_PATH/provision.sh manually and you will see the same log.

as in the figure above.

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

ask questions

Mar.19,2021
The

problem has been found to be caused by newline characters.

Menu