举个栗子:
执行下面的指令,就会出现这问题
docker build -f /Users/mr.softrock/Documents/Mr.SoftRock/project/springboot-ci-cd/Dockerfile -t springboot-ci-cd
原因是因为(少了一个 ‘.’ , ‘.’ 代表当前路径)
docker build -f /Users/mr.softrock/Documents/Mr.SoftRock/project/springboot-ci-cd/Dockerfile . -t springboot-ci-cd
xxx/Dockerfile . 后面要带上这个 .