You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
The text was updated successfully, but these errors were encountered:
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
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:
The text was updated successfully, but these errors were encountered: