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

shell.image in 0.14.x has problems #2998

Closed
skaegi opened this issue Jul 23, 2020 · 1 comment · Fixed by #2999
Closed

shell.image in 0.14.x has problems #2998

skaegi opened this issue Jul 23, 2020 · 1 comment · Fixed by #2999
Labels
kind/bug Categorizes issue or PR as related to a bug.

Comments

@skaegi
Copy link
Contributor

skaegi commented Jul 23, 2020

I noticed this when running under Kata but I believe this is a general problem with anyone using "scripts" in Tasks.

For "kata" in the container logs I was seeing...

standard_init_linux.go:211: exec user process caused "exec format error"
ERRO[0000] init failed                                   error="standard_init_linux.go:211: exec user process caused \"exec format error\"" name=kata-agent pid=1 source=agent

for any shell script run using the place-scripts container.

Running docker locally...

With 0.14.x shell.image
$ docker run --rm gcr.io/distroless/base@sha256:f79e093f9ba639c957ee857b1ad57ae5046c328998bf8f72b30081db4d8edbe4 -c ls
ls: can't open '.': Value too large for defined data type

With latest distroless base debug
$ docker run --rm gcr.io/distroless/base:debug -c ls
bin
boot
busybox
dev
etc
home
lib
lib64
proc
root
run
sbin
sys
tmp
usr
var

We should probably update shell.image to use the current gcr.io/distroless/base:debug SHA
e.g. gcr.io/distroless/base@sha256:60f5ffe6fc481e9102747b043b3873a01893a5a8138f970c5f5fc06fb7494656

@skaegi skaegi added the kind/bug Categorizes issue or PR as related to a bug. label Jul 23, 2020
@skaegi
Copy link
Contributor Author

skaegi commented Jul 24, 2020

Also see GoogleContainerTools/distroless#513 and https://bugs.busybox.net/show_bug.cgi?id=11651

Anyone running with gVisor will also have this problem... GoogleContainerTools/distroless#352

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Categorizes issue or PR as related to a bug.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant