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

buildah add ignores the implicit .containerignore #3303

Closed
dilyanpalauzov opened this issue Jun 16, 2021 · 1 comment
Closed

buildah add ignores the implicit .containerignore #3303

dilyanpalauzov opened this issue Jun 16, 2021 · 1 comment

Comments

@dilyanpalauzov
Copy link
Contributor

I do
strace -fs2048 buildah add --contextdir /home/d/chroot abc / /

The documentation of buildah add says:

--ignorefile

Path to an alternative .containerignore (.dockerignore) file. Requires --contextdir be specified.

My reading of the above text is, that the aforementioned call will try to open the default .containerignore file: contextdir is provided and the default .containerignore file is not overwritten.

strace shows that neither .dockerignore nor .containerignore are opened in any directory, when --ignorefile is skipped.

I guess the same happens for buildah copy.

buildah version 1.21.0 (image-spec 1.0.1-dev, runtime-spec 1.0.2-dev)

@rhatdan
Copy link
Member

rhatdan commented Jun 18, 2021

Since PR Merged, I am going to close.

@rhatdan rhatdan closed this as completed Jun 18, 2021
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 5, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants