Skip to content

v1.1.31

Choose a tag to compare

@github-actions github-actions released this 29 Nov 15:37
· 16 commits to main since this release

変更内容

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-vnc alone opens 127.0.0.1:5901 (screen :1 inside the phone) and asks for the password. z2-vnc :2 and z2-vnc 192.168.1.5:5900 work 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 build with many steps stopped with "Cannot allocate memory".
    • Names could not be resolved inside a podman build RUN, so apk add and the like could not fetch packages.
    • useradd, passwd and 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 -p could stop answering from the second connection on.
    • A container could not be started with -p on the same port right after removing the previous one.
    • Places mounted with --read-only or :ro could 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 start did nothing. When the app restarts, the OS's /run and /dev/shm are 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".

Known issues (containers on z2k):

  • podman top also 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 logs is empty on Arch (Arch's default log driver is journald). Add --log-driver k8s-file to keep logs.
  • --privileged does not start, because Android does not allow listing /dev.

Full Changelog: v1.1.16...v1.1.31