Is ** in dockerignore meant to match files as well? #21807
Open
Description
Is this a docs issue?
- My issue is about the documentation content or website
Type of issue
Information is incorrect
Description
Per https://docs.docker.com/build/concepts/context/#matching:
Docker also supports a special wildcard string ** that matches any number of directories (including zero)
but looking at https://github.com/moby/patternmatcher/blob/main/patternmatcher.go#L322 the implication seems to be that foo/**
will match any file or directory that is a child of directory foo
. Meaning, **
will match paths that end with a file, not just a directory.
Is my interpretation correct?
Location
https://docs.docker.com/build/concepts/context/#matching
Suggestion
No response