Skip to content

[Bug]: container build under /tmp fails to copy directories #2253

Description

@JaewonHur

I have done the following

  • I have searched the existing issues
  • If possible, I've reproduced the issue using the 'main' branch of this project

Steps to reproduce

mkdir -p /tmp/test
cd /tmp/test

mkdir -p srcdir
echo foo > srcdir/foo

cat > Dockerfile << 'EOF'
FROM docker.io/library/alpine:3.20

COPY srcdir /dstdir
RUN ls -al /dstdir
EOF

container build -t test -f ./Dockerfile --progress plain --no-cache .

/dstdir/foo file is missing.

Problem description

File contents must be copied when COPY srcdir /dstdir.

Environment

- OS: macOS
- Xcode: 27.0
- Container: main

Code of Conduct

  • I agree to follow this project's Code of Conduct

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions