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

[Bug Report K3s Windows] - Scratch Image Filesystem has no shell. #9990

Open
ag6221254 opened this issue Apr 22, 2024 · 0 comments
Open

[Bug Report K3s Windows] - Scratch Image Filesystem has no shell. #9990

ag6221254 opened this issue Apr 22, 2024 · 0 comments

Comments

@ag6221254
Copy link

ag6221254 commented Apr 22, 2024

Environmental Info:
K3s Version:

Node(s) CPU architecture, OS, and Version:

Cluster Configuration:

Describe the bug:
Scratch Image, used as Second image in Dockerfile, filesystem has no shell to run commands.

Steps To Reproduce:
GOOS=windows CXX=x86_64-w64-mingw32-g++ CC=x86_64-w64-mingw32-gcc SKIP_VALIDATE=true ./scripts/ci

  • Installed K3s: v1.28.3
  • installed docker engine - v24.0.7

Actual behavior:
When the execution in dockerfile happens at the below commands -
COPY --from=base /image /
RUN mkdir -p /etc &&
echo 'hosts: files dns' > /etc/nsswitch.conf &&
echo "PRETTY_NAME="K3s ${VERSION}"" > /etc/os-release &&
chmod 1777 /tmp

Fails with the below error message -
"failed to create task for container: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: exec: "/bin/sh": stat /bin/sh: no such file or directory: unknown"

Additional context / logs:
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: New
Development

No branches or pull requests

1 participant