我正在使用 Jenkins Docker 插件来构建我的 docker 镜像,但是我的构建失败并出现以下异常: Dockerfile is excluded by pattern 'Dockerfile' in .dockerignore file
com.github.dockerjava.api.exception.DockerClientException: Dockerfile is excluded by pattern 'Dockerfile' in .dockerignore file
at com.github.dockerjava.core.dockerfile.Dockerfile$ScannedResult.<init>(Dockerfile.java:184)
at com.github.dockerjava.core.dockerfile.Dockerfile.parse(Dockerfile.java:111)
at ...
看起来它使用docker-java库
在检查源代码时,如果此处忽略 Dockerfile,则会抛出异常:Dockerfile.java : L185
那么不允许忽略 Dockerfile 吗?为什么?
相关分类