llhuii / dive-into-k8s

Apache License 2.0
0 stars 0 forks source link

alpine3.14 test -r 有问题 #31

Open llhuii opened 8 months ago

llhuii commented 8 months ago

https://github.com/alpinelinux/docker-alpine/issues/156

alpine(3.14+)bash都有问题

This is related to faccessat2 syscall has been enabled in musl in alpine starting 3.14. Due to a bug in runc it fails if your kernel do not support faccessat2.
Short answer update runc to >= 1.0.0-rc93 or update kernel to 5.8 (upgrading kernel should work but i haven't tested it)
Detail in release note
https://wiki.alpinelinux.org/wiki/Release_Notes_for_Alpine_3.14.0#faccessat2
Bug in runc (fixed in 1.0.0-rc93 )
opencontainers/runc#2151

下载得以解决:https://download.docker.com/linux/static/stable/x86_64/docker-20.10.5.tgz

curl -fSL  https://tools.oss-cn-hangzhou.aliyuncs.com/tools/runc_linux_amd64_1.0.0-rc93 -o docker-runc && chmod +x ./docker-runc  && mv --suffix=.old -f ./docker-runc /bin/docker-runc