Docker Community Forums

Share and learn in the Docker community.

.dockerignore behaves differently on Docker Cloud

My .dockerignore file includes a rule like this:


For some reason that seems to match the path plugin/build.gradle when it seems that it shouldn’t.

This seems to have become an issue in the past few months; our earlier builds used to work fine and local builds work fine.

(Context: this image builds an Elasticsearch plugin)

According to the .dockerignore doc :

The CLI interprets the .dockerignore file as a newline-separated list of patterns similar to the file globs of Unix shells.

but **/ is not a UNIX file pattern - perhaps try remove that, and just usse .gradle/ ?