Files
openbot/docker
Aleksander DygońandClaude Opus 5.5 477e9fe1fa Update a Docker instance from the app (#2054)
* Update a Docker instance from the app

An instance of docker/instances now updates from Server settings and the
update dialog. The container writes an empty request file to a folder
that the host mounts. openbot-instance-update@<name>.path runs
`openbot-instance update-request <name>` as root, which pulls the image
and, for an install, makes the container again from a newer image only.
Root writes the state to a folder that the container mounts read-only.
The container never gets the Docker socket.

The app uses HostedUpdateAdapter with the container folders when the host
wrote update-status/enabled, and reports the method self-update.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Limit the update requests of a Docker instance to a small tmpfs

The container can write the request folder. As a folder on the disk of
the host, it was outside the disk limit of the instance, so an agent
could fill the host disk. It is now a tmpfs of 64 KiB and 16 files that
/etc/fstab mounts before Docker starts.

An instance with a fixed OPENBOT_TAG offers no update in the app, because
a pull of that tag never gives a newer version. The keeper uses touch -c,
so it does not make the state file again after the request ends.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-14 15:11:11 +02:00
..