.dockerignore documentation claims /bla
entry will ignore directory named "bla" in root, but it doesn't
#36660
Labels
/bla
entry will ignore directory named "bla" in root, but it doesn't
#36660
Description
.dockerignore documentation https://docs.docker.com/engine/reference/builder/#dockerignore-file claims
/bla
entry will ignore directory named "bla" in root, but when I actually tested this, onlybla
will work as an entry, and/bla
won't. Since I believe this is inconsistent with a .gitignore, I wonder if this is a docker bug? (If it isn't a docker bug, then I suggest it should be fixed in the documentation.)Steps to reproduce the issue:
Describe the results you received:
"bla" is uploaded to docker daemon, despite "/bla" entry in ".dockerignore" file
Describe the results you expected:
"bla" is not uploaded to docker daemon, because of "/bla" entry in ".dockerignore" file. Alternatively, the docs shouldn't suggest that this works (which they do now, at least as far as my reading comprehension goes, of the
/foo/bar
example entry that is mentioned)Additional information you deem important (e.g. issue happens only occasionally):
Output of
docker version
:Output of
docker info
:Additional environment details (AWS, VirtualBox, physical, etc.):
tested on a physical dev machine (zen / AMD64, runs fedora 27)
The text was updated successfully, but these errors were encountered: