Comments (12)
That's... exciting :)
I wonder if updating will help, I found this.
from distroless.
Yep, found that too, although the version in cc:debug
is much more recent:
BusyBox v1.27.1 (2017-07-18 19:24:44 CEST) multi-call binary.
from distroless.
Also, apparently that's only for certain directories:
/*
* Try to detect broken toolbox/busybox binaries (see
* https://code.google.com/p/busybox-android/issues/detail?id=1)
*
* It is giving "Value too large for defined data type" on certain file operations (e.g. ls
* and chown) in certain directories (e.g. /data/data)
*/
from distroless.
We also ran into this, and it turns out that there is a busybox config setting CONFIG_LFS
that it must be compiled with to support working with large files. Without it you may encounter errors in ls
, rm
, etc.
The provided busybox binaries appear to be not compiled with that flag. We built busybox from source using the default config to resolve this. The busybox http_file
in distroless' WORKSPACE is using a default provided binary.
from distroless.
I checked, the latest binary, https://busybox.net/downloads/binaries/1.27.1-i686/config has CONFIG_LFS=y set.
This does not exist anymore.
tejaldesai@tejaldesai$ kubectl exec -it testdep-77888775fb-psf82 sh
/ # ls
busybox etc lib64 sys usr
dev lib proc tmp var
/ #
from distroless.
Is this released in the latest gcr.io/distroless/base:debug
tag? Still experiencing it.
from distroless.
I'm also seeing it:
/root # busybox | head -n 1
BusyBox v1.27.1 (2017-07-18 19:24:44 CEST) multi-call binary.
/root # ls
ls: can't open '.': Value too large for defined data type
on a GKE cluster, node version 1.9.4-gke.1, machine type n1-standard-4
from distroless.
I am also seeing this in GKE running a busybox on top of the container optimized os 4.14.22+ kernel. The busybox version is the same one that @tejal29 listed as working BusyBox v1.27.1 (2017-07-18 19:24:44 CEST) multi-call binary.
from distroless.
Somehow, i cant reproduce this on my end.
kubectl run testdep --image=gcr.io/distroless/cc:debug --command -- sleep 999999
deployment.apps/testdep created
tejaldesai@tejaldesai~:$ kubectl get po
NAME READY STATUS RESTARTS AGE
testdep-6fdff65d5b-xjsh7 1/1 Running 0 15s
tejaldesai@tejaldesai~:$ kubectl exec -it testdep-6fdff65d5b-xjsh7 sh
/ # ls
busybox etc lib proc tmp var
dev home lib64 sys usr
/ # busybox | head -n 1
BusyBox v1.27.1 (2017-07-18 19:24:44 CEST) multi-call binary.
from distroless.
can you provide me with your docker build file?
from distroless.
I can't seem to recreate this in our GKE cluster anymore. Its possible some nodes were updated, either the underlying kernel or the k8s version.
from distroless.
I suspect this was the same root cause as #225
from distroless.
Related Issues (20)
- How to add msttcorefonts to the image HOT 4
- Find glibc version used in base-nossl-debian12:nonroot HOT 2
- CVE-2023-52425 HOT 2
- MODULE_NOT_FOUND when starting any node application based on latest distroless images HOT 6
- CVE-2023-24329 HOT 2
- Using official Python base images and packaging into distroless later on HOT 3
- Should be based on Alpine HOT 1
- Reduce nodejs image size by removing /nodejs/include directory HOT 2
- Getting /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.32' not found error when using distroless base HOT 1
- Fix for CVE-2024-28085 HOT 6
- nuxt.js throws Error: Cannot find module '/app/node' HOT 4
- Merge /var/lib/dpkg/status.d/* HOT 1
- `static` tag is based on Debian 11 HOT 2
- use of non existing index.bzl file HOT 1
- CVE-2024-2961 HOT 3
- Docker image with distroless as a base image is throwing error while deploying to AWS EKS HOT 3
- How to install git on a distroless image? HOT 8
- add certificate to `gcr.io/distroless/java17-debian12:nonroot` HOT 2
- Adjusting the number of cores or gc config based upon cgroups HOT 1
- appending additional options to JAVA_TOOL_OPTIONS at runtime
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from distroless.