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

COPY is bombing on dangling symlinks #1186

Closed
ewah opened this issue Apr 9, 2020 · 1 comment
Closed

COPY is bombing on dangling symlinks #1186

ewah opened this issue Apr 9, 2020 · 1 comment

Comments

@ewah
Copy link

ewah commented Apr 9, 2020

Actual behavior

building a simple dockerfile

FROM alpine:latest

COPY a /a

make the a directory and dangling symlink

mkdir -p /workspace/a
ln -s abc /workspace/a/dangling_link

call build

# /kaniko/executor --dockerfile=./Dockerfile --destination=mydockerhub/ed/ed-test:200408-a
INFO[0000] Resolved base name alpine:latest to alpine:latest
INFO[0000] Resolved base name alpine:latest to alpine:latest
INFO[0000] Retrieving image manifest alpine:latest
INFO[0001] Retrieving image manifest alpine:latest
INFO[0001] Built cross stage deps: map[]
INFO[0001] Retrieving image manifest alpine:latest
INFO[0001] Retrieving image manifest alpine:latest
INFO[0001] Unpacking rootfs as cmd COPY a /a requires it.
INFO[0001] Taking snapshot of full filesystem...
INFO[0003] Resolving paths
INFO[0003] COPY a /a
error building image: error building stage: failed to execute command: lstat /workspace/a/abc: no such file or directory

errors trying to resolve symlink instead of creating dangling symlink.

Expected behavior
/a/dangling_link be be a symlink to /a/abc

To Reproduce
see actual

Additional Information

  • Dockerfile
    above
  • Build Context
    empty except for ln -s being called
  • Kaniko Image (fully qualified with digest)
    gcr.io/kaniko-project/executor:debug-v0.18.0
    sha256:0b8f9aba6c282e92c26db474d0970cef156d8952ee21ea230cc16ea1bf7969eb

Triage Notes for the Maintainers

Description Yes/No
Please check if this a new feature you are proposing
Please check if the build works in docker but not in kaniko
  • - [ X ]
Please check if this error is seen when you use --cache flag
Please check if your dockerfile is a multistage dockerfile
@ewah
Copy link
Author

ewah commented Apr 9, 2020

i am a dupe #1111

@ewah ewah closed this as completed Apr 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant