Skip to content
This repository has been archived by the owner on Nov 3, 2023. It is now read-only.

No such file or directory when trying to run "kubectl build" #143

Open
davidpanic opened this issue Jul 7, 2023 · 2 comments
Open

No such file or directory when trying to run "kubectl build" #143

davidpanic opened this issue Jul 7, 2023 · 2 comments

Comments

@davidpanic
Copy link

What steps did you take and what happened

When running kubectl build --help Error: no such file or directory is printed and the command exits with the status code 1.

What did you expect to happen

I expected to be able to run the command

Environment Details:

Reproducible with this Dockerfile:

FROM alpine:edge

RUN apk add curl kubectl
RUN curl -L https://github.com/vmware-tanzu/buildkit-cli-for-kubectl/releases/download/v0.1.6/linux-v0.1.6.tgz | tar -C /usr/local/bin -zxvf -

Run the following to try it out:

  • docker build -t buildkit-cli-test .
  • docker run --rm -v ~/.kube:/root/.kube:ro buildkit-cli-test sh -c 'kubectl get node && echo === && kubectl build --help'

Output:

NAME           STATUS   ROLES           AGE   VERSION
[REDACTED]-1   Ready    control-plane   29d   v1.27.1
[REDACTED]-2   Ready    control-plane   29d   v1.27.1
[REDACTED]-3   Ready    control-plane   28h   v1.27.1
===
Error: no such file or directory

Vote on this request

This is an invitation to the community to vote on issues. Use the "smiley face" up to the right of this comment to vote.

  • 👍 "I would like to see this bug fixed as soon as possible"
  • 👎 "There are more important bugs to focus on right now"
@kingatlas
Copy link

@davidpanic I'm facing the same issue, running from an alpine container.
Did you find a workaround for that?

@davidpanic
Copy link
Author

Did you find a workaround for that?

Nope, I could never get it to work.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants