Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dockerignore files do not support wildcards in exception patterns #13343

Open
stefanloerwald opened this issue Aug 13, 2021 · 3 comments
Open
Labels
area/build Relates to Dockerfiles or docker build command lifecycle/frozen

Comments

@stefanloerwald
Copy link
Contributor

File: engine/reference/builder.md

The section about dockerignore files incorrectly states that wildcards in exception patterns work. https://docs.docker.com/engine/reference/builder/#dockerignore-file

They don't. The corresponding issue is open since 2017: moby/moby#30018

Of course ideally this would be supported, but until then, I think it's only fair to update the docs to reflect the current state.

@MatthiasKunnen
Copy link

It would be a good idea to document that dockerignore has several shortcomings and link to moby/moby#30018. Hopefully it will prevent people from wasting their time with this behavior as I just did.

@craig-osterhout craig-osterhout added the area/build Relates to Dockerfiles or docker build command label Aug 2, 2022
@docker-robott
Copy link
Collaborator

There hasn't been any activity on this issue for a long time.
If the problem is still relevant, mark the issue as fresh with a /remove-lifecycle stale comment.
If not, this issue will be closed in 14 days. This helps our maintainers focus on the active issues.

Prevent issues from auto-closing with a /lifecycle frozen comment.

/lifecycle stale

@stefanloerwald
Copy link
Contributor Author

/remove-lifecycle stale

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/build Relates to Dockerfiles or docker build command lifecycle/frozen
Projects
None yet
Development

No branches or pull requests

5 participants