Repository navigation
v1.1.31
変更内容
1.1.31: z2k の上の Podman・Docker のコンテナを、普段の使い方で止まらないようにまとめて直しました。スマホの中のコンテナで VNC のデスクトップ(Xfce など)を動かして、z2term の画面で開けます(1.1.17〜1.1.31 の変更をまとめた版です)。
z2-vnc(新しいコマンド): VNC の画面を、接続先を登録せずに新しいタブで開けます。z2-vncだけで 127.0.0.1:5901(スマホの中の画面 :1)を開き、パスワードを聞きます。z2-vnc :2やz2-vnc 192.168.1.5:5900のようにも書けます。- 接続先の並べ替え: 📜 › 接続先 の一覧の見出しの「並び替え」を押すと、≡ を掴んで上下に動かせます。
- z2k のコンテナ:
podman buildの時間のかかる RUN(大きなパッケージを入れるなど)が途中で「fatal error: entersyscall」で落ちていたのを直しました。子をたくさん起動する Go のプログラムも落ちなくなります。- 段の多い
podman buildが「Cannot allocate memory」で止まっていたのを直しました。 podman buildの RUN の中で名前が引けず、apk addなどがパッケージを取れなかったのを直しました。- コンテナの中の
useradd・passwdなどが「cannot lock /etc/passwd」で止まっていたのを直しました。 - コンテナの中で UNIX ソケットのファイルを作れなかったのを直しました。中の VNC のサーバー(Xvnc)が起動します。
- コンテナの中で、glib を使うプログラムが D-Bus に繋がらなかったのを直しました。中の Xfce のデスクトップが起動します。
- IPv4 と IPv6 の両方で同じポートを待ち受けるプログラム(nginx など)が「Address in use」で起動しなかったのを直しました。
-pで公開したポートに、2 回目の接続から届かなくなることがあったのを直しました。- コンテナを消した直後に、同じポートで
-pを付けて起動できなかったのを直しました。 --read-onlyや:roを付けた場所に書けてしまっていたのを直しました(本物と同じく「Read-only file system」になります)。- z2term を更新した後、Podman が止まったコンテナを動いていると思い込み、
podman startが何もしなかったのを直しました。アプリが起動し直したときは、スマホの再起動の後と同じく、OS の/runと/dev/shmを空にします。 - あるタブ(や ssh)で起こしたコンテナを別のタブから止めると、「netavark: setns: IO error: Invalid argument」になったのを直しました。
既知の不具合(z2k のコンテナ):
podman topに、コンテナの外のプロセスまで出ます。- Alpine の Podman(runc を使う)では、コンテナのネットワークの設定が通りません。Arch の runc 1.5 は動きません(crun を使ってください)。
- Arch の
podman logsが空になります(Arch の既定の記録先が journald のため)。--log-driver k8s-fileを付けると残ります。 --privilegedでは、Android が /dev の一覧を読ませないので起動しません。
Changes
1.1.31: Podman and Docker containers on z2k no longer stop in everyday use. You can run a VNC desktop (Xfce and the like) in a container on the phone and open it in z2term (this release gathers the changes from 1.1.17 to 1.1.31).
z2-vnc(new command): opens a VNC screen in a new tab without registering a connection.z2-vncalone opens 127.0.0.1:5901 (screen :1 inside the phone) and asks for the password.z2-vnc :2andz2-vnc 192.168.1.5:5900work too.- Reordering connections: press Reorder in the header of 📜 › Connections, then drag ≡ up or down.
- Containers on z2k:
- A long RUN in
podman build(installing large packages and so on) crashed partway with "fatal error: entersyscall". Go programs that start many children no longer crash either. - A
podman buildwith many steps stopped with "Cannot allocate memory". - Names could not be resolved inside a
podman buildRUN, soapk addand the like could not fetch packages. useradd,passwdand the like inside a container stopped with "cannot lock /etc/passwd".- UNIX socket files could not be created inside a container. A VNC server (Xvnc) inside one now starts.
- Programs using glib could not connect to D-Bus inside a container. An Xfce desktop inside one now starts.
- Programs that listen on the same port over both IPv4 and IPv6 (nginx and others) failed with "Address in use".
- A port published with
-pcould stop answering from the second connection on. - A container could not be started with
-pon the same port right after removing the previous one. - Places mounted with
--read-onlyor:rocould still be written to (they now give "Read-only file system", as on real Linux). - After z2term was updated, Podman thought stopped containers were still running and
podman startdid nothing. When the app restarts, the OS's/runand/dev/shmare now emptied, as after a phone restart. - Stopping from one tab a container started in another tab (or over ssh) failed with "netavark: setns: IO error: Invalid argument".
- A long RUN in
Known issues (containers on z2k):
podman topalso lists processes outside the container.- With Podman on Alpine (which uses runc), container networking cannot be set up. runc 1.5 on Arch does not work (use crun).
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.16...v1.1.31