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

ls and find don't work in debug image #1300

Closed
pikrzysztof opened this issue Apr 24, 2019 · 4 comments
Closed

ls and find don't work in debug image #1300

pikrzysztof opened this issue Apr 24, 2019 · 4 comments
Labels

Comments

@pikrzysztof
Copy link

This happens when I run it on my machine:

-> % docker run -it fluent/fluent-bit:1.0.6-debug sh
/ # ls
bin         boot        dev         etc         fluent-bit  home        lib         lib64       proc        root        run         sbin        sys         tmp         usr         var

However when I try to exec into my k8s pod the behaviour is different:

-> % k2 -n kube-system exec -it fluent-bit-htb9f sh
/ # ls
ls: can't open '.': Value too large for defined data type
/ # find .
.
find: .: Value too large for defined data type
/ # echo *
*

Busybox claims

The "busybox-i686" version should run on both 32-bit and 64-bit x86 PCs

but apparently it's wrong.

See also GoogleContainerTools/distroless#225

@briantopping
Copy link

This seems to be an issue with the kubernetes execution environment somehow being different than what docker would run on it's own:

[root@gw01 ~]# docker container ls | grep fluent
0945809b3e69        docker.io/fluent/fluent-bit@sha256:2730443369c08c71fb475f013849a0dbe99e817531612ff3777f3d6bf260a5cf                     "/fluent-bit/bin/f..."   11 minutes ago      Up 11 minutes                           k8s_fluent-bit_fluent-bit-cm4ph_logging_af2d061b-bbf3-11e9-9ba7-0cc47a9a538e_0
a70b8d48f9a7        k8s.gcr.io/pause:3.1                                                                                                    "/pause"                 12 minutes ago      Up 12 minutes                           k8s_POD_fluent-bit-cm4ph_logging_af2d061b-bbf3-11e9-9ba7-0cc47a9a538e_0
[root@gw01 ~]# docker exec -it 0945809b3e69 sh
/ # ls
ls: can't open '.': Value too large for defined data type

Really annoying...

@pikrzysztof
Copy link
Author

@github-actions
Copy link
Contributor

This issue is stale because it has been open 90 days with no activity. Remove stale label or comment or this will be closed in 5 days. Maintainers can add the exempt-stale label.

@github-actions github-actions bot added the Stale label Jan 28, 2022
@github-actions
Copy link
Contributor

github-actions bot commented Feb 2, 2022

This issue was closed because it has been stalled for 5 days with no activity.

@github-actions github-actions bot closed this as completed Feb 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants