Repository navigation
v1.1.32
変更内容
1.1.32: z2k の上で、runc 1.5(コンテナのランタイム。Arch の Podman では --runtime runc で選べます)でコンテナを起こせるようにしました。今までは起動のたびに Segmentation fault で落ちていました。
- runc 1.5 のコンテナ: 起動・ネットワーク・
exec・健康確認(healthcheck)・pause/unpause・pod が動きます。 - コンテナの中のスレッドの多いプログラム: setuid・setgroups などを呼ぶと、そのまま止まることがあったのを直しました(glibc が全スレッドへ配る合図を、受けたスレッドが「送り主が違う」と無視していました)。
faccessat2: syscall を直接呼ぶプログラム(Rust のものなど)で「Function not implemented」になっていたのを直しました(Android が通さないので z2k が代わりに答えます)。
既知の不具合(z2k のコンテナ):
- runc の pod が、続けてたくさんのコンテナを起こした後などに起動しないことがあります。
- Alpine の Podman(runc 1.2)では、コンテナが起動しません(「can't get final child's PID from pipe」)。
- crun の
pauseは終わりの印を返しますが、コンテナの中のプロセスは止まりません。 podman topに、コンテナの外のプロセスまで出ます。- Arch の
podman logsが空になります(Arch の既定の記録先が journald のため)。--log-driver k8s-fileを付けると残ります。 --privilegedでは、Android が /dev の一覧を読ませないので起動しません。
Changes
1.1.32: Containers can now be started with runc 1.5 on z2k (a container runtime; with Podman on Arch you choose it with --runtime runc). Until now it crashed with a segmentation fault on every start.
- runc 1.5 containers: starting, networking,
exec, health checks,pause/unpauseand pods work. - Multi-threaded programs in containers: calling setuid, setgroups and the like could hang (the threads that received glibc's broadcast signal ignored it as coming from the wrong sender).
faccessat2: programs that make syscalls directly (Rust programs and so on) got "Function not implemented" (Android blocks it, so z2k answers instead).
Known issues (containers on z2k):
- With runc, a pod sometimes fails to start, for example after many containers have been started in a row.
- With Podman on Alpine (runc 1.2), containers do not start ("can't get final child's PID from pipe").
- crun's
pausereports success, but the processes in the container keep running. podman topalso lists processes outside the container.podman logsis empty on Arch (Arch's default log driver is journald). Add--log-driver k8s-fileto keep logs.--privilegeddoes not start, because Android does not allow listing /dev.
Full Changelog: v1.1.31...v1.1.32