-
Notifications
You must be signed in to change notification settings - Fork 766
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
COPY misbehaves in the presence of any non-empty .dockerignore file #1530
Comments
@QiWang19 PTAL |
Bot doesn't close this for me. I'll close it. |
@QiWang19 I did not close this myself since I intended to wait until the bugfix arrives in |
👌 , I'll reopen. |
@QiWang19 Thank you! |
Unfortunately not yet solved in the current Ubuntu Bionic version: buildah/bionic 1.9.0-1~dev~ubuntu18.04~ppa4 amd64 |
@QiWang19 Could you please reopen this? buildah still behaves as described above. Thanks! |
@undecaf thanks. It's open already |
I am sorry for the mess, I was mistaken, this is no longer a Buildah bug: STEP 3: RUN find / -maxdepth 2 -name 'zzz*'
/etc/zzz.conf whereas STEP 3: RUN find / -maxdepth 2 -name 'zzz*'
/zzz I did not test Buildah in the first place because I thought that |
Yes podman build is a vendored version of buildah, meaning it pulls in an older version of buildah code base and compiles it into podman. You can use podman info | grep -i buildah to get the version of buildah used. |
When COPYing a directory, I expected only the children of the source directory to be copied. However, if a non-empty
.dockerignore
file exists then the source directory itself is copied.Steps to reproduce the issue:
Dockerfile
:.dockerignore
file (actually, any content except#
will do):podman build .
Describe the results you received:
Directory
zzz
appears at the image root:Describe the results you expected:
The content of
zzz
was merged into the image (this will happen when building with.dockerignore
removed or empty):Output of
rpm -q buildah
orapt list buildah
:Output of
buildah version
:Output of
podman version
if reporting apodman build
issue:Output of
cat /etc/*release
:Output of
uname -a
:Output of
cat /etc/containers/storage.conf
:The text was updated successfully, but these errors were encountered: