ADD failed: file not found in build context or excluded by .dockerignore: stat

报错:

ADD failed: file not found in build context or excluded by .dockerignore: stat

背景:

远程执行脚本文件,报这个错误

解决方案:

执行脚本前,进入到服务器的指定目录,然后执行脚本

你可能感兴趣的:(Docker,脚本,docker)