不允许忽略“.dockerignore”中的 Dockerfile?

我正在使用 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 吗?为什么?


墨色风雨
浏览 265回答 1
1回答
打开App,查看更多内容
随时随地看视频慕课网APP

相关分类

Java