17 Commits
Author SHA1 Message Date
Karthik P 1b57526f84 Engine: docker container prune and system prune keep stopped machines (#975)
A `kiri machine` keeps its work in its container's writable layer, so a
routine `docker system prune` with the machine stopped deleted it and
everything in it. container_prune now leaves containers labelled
dev.kiri.machine out, as OrbStack's prunes leave its machines alone;
`kiri machine delete` and `docker rm machine-NAME` still remove one.
The window's prune goes through the same endpoint.

Unit test in daemon/ops.rs, e2e check machine-prune-keeps, listed in
tests/regressions.tsv; docs/features.md says prunes keep machines.
2026-11-26 14:00:17 +01:00
6f2595cfaa Guest kernel: enable NFSv3/v4 client for type=nfs volumes and dm-crypt/LUKS (#494) (#961)
Co-authored-by: meutex <meutex@users.noreply.github.com>
Co-authored-by: Marcin Uliasz <marcin.uliasz@hotmail.com>
2026-11-25 19:53:30 +01:00
Precious OkwuandMasih Moloodian 9af5ae5b80 VM: swap on the data disk, 1 GiB by default, set in Settings -> Resources (#326) (#958)
Co-authored-by: Masih Moloodian <masihmoloodian@gmail.com>
2026-11-25 19:14:20 +01:00
Precious OkwuandBrad Hallett 83bd3de037 TLS: trust the host operating system's CA certificate store (#303) (#894)
Co-authored-by: Brad Hallett <53977268+bradhallett@users.noreply.github.com>
2026-11-24 16:21:03 +01:00
Precious Okwu a1c4ca54c0 Settings: add launch at login and stop engine on quit (#368) (#827) 2026-11-24 02:49:51 +01:00
9ac386f4ff UI: add Linux StatusNotifierItem tray and option to free WebView memory on close (#405, #168) (#826)
Co-authored-by: Kotenkuu <hieu356xz@gmail.com>
Co-authored-by: Urdemonlord <hasrinata@gmail.com>
2026-11-24 02:28:11 +01:00
Precious Okwu 96829c7079 Windows: add opt-in WSL 2 distro socket and bind-mount integration (#269) (#825) 2026-11-24 02:11:09 +01:00
Precious OkwuandShuvro Roy afd53c026b Mac: support configuring and growing the VM data disk online (#384) (#824)
Co-authored-by: Shuvro Roy <shuvro.nsu.cse@gmail.com>
2026-11-24 01:50:23 +01:00
Precious OkwuandChukwuebuka 6d8928bc99 CLI: add kiri scan <image> vulnerability scanner subcommand (#472) (#818)
Co-authored-by: Chukwuebuka (Gaus Octavio) <56232734+Chukwuebuka-2003@users.noreply.github.com>
2026-11-24 00:46:34 +01:00
Precious OkwuandAlex Alvord e323ac020b Docs: list healthchecks, Compose build/wait/conditions, bind volumes, and two build notes (#361)
Co-authored-by: Alex Alvord <325058966+cloudlabworks@users.noreply.github.com>
2026-11-23 17:03:46 +01:00
Kitsune2077 4172e6a535 Images: registry mirrors for Docker Hub, in Settings and the CLI (#119)
## What this changes and why

Fixes #118.

Docker Hub pulls try the configured mirrors first, in order, then Docker Hub itself. The image keeps the name it was asked for (`docker images` still shows `alpine:latest`), a mirror is asked — and its layers fetched — with no credentials so a Hub sign-in never leaves for a third party, and a mirror that has no image or does not answer says why in the pull output and falls back. Other registries are pulled directly, and pushes never go through a mirror. That is Docker's `registry-mirrors` semantic: the list is Hub-only.

- `~/.kiri/registry-mirrors.json` (`GET`/`POST /kiri/registry-mirrors`), the daemon's, so macOS, Windows and Linux share one implementation.
- Settings → Registry mirrors: add, remove, save, on all three systems.
- `kiri registry-mirror list | add ADDRESS | remove ADDRESS`; on Windows `kiri.exe` forwards it into WSL.
- `docker build`: the mirrors are merged into the generated `buildkitd.toml` after Kiri's own build mirror, and an idle builder is stopped so the next build reads the new file.
- First run survives a blocked Hub: the setup wizard's test container is best-effort, and the ready screen points at Settings → Registry mirrors if it could not run.

No new dependencies and no background process. The field's example is a neutral `https://mirror.example.com`, and the words are in all language files.

## How you tested it

```text
$ cargo test -p kiri-image          # in the fork's GitHub Actions, run 42787435140
$ cargo test -p kiri registry_mirrors
$ cargo test -p kiri --no-run
all passing

$ python3 scripts/i18n-check.py
PASS 1631 keys, 15 language file(s), 0 problem(s)

$ python3 scripts/ui-test.py
PASS, including tests/ui/mirrors.js and the macOS/Windows/Linux parity pass
```

On Windows 10 22H2 (19045), x86-64: built the MSI from this branch through the fork's CI, installed it, added a mirror in Settings; `docker pull alpine` went through it and kept the name, `kiri registry-mirror list` showed it, and `docker build` with `FROM alpine` used it.

`cargo fmt` and `cargo clippy` were not run: this machine has no Rust toolchain, so the Rust tests run in GitHub Actions. The daemon, image client and page are shared code, but I only ran Kiri on Windows; the page tests cover the macOS and Linux layouts.

Tested on: Windows 10 22H2, x86-64

## How you found it

- [x] I use Kiri and ran into this myself
- [ ] I found it by reading the code or comparing with Docker
- [ ] Someone else reported it (link the issue above)

AI tools used to write this change: yes — the Rust, page and test code was drafted with ZCode (an AI coding assistant) and reviewed and tested by the author.

## Checklist

- [x] I have at most 3 pull requests open on Kiri, this one included
- [ ] `cargo fmt`, `cargo clippy` and the tests pass — tests pass in CI; fmt and clippy were not available here
- [ ] It works on macOS, Windows and Linux, or the change only touches one of them — shared code, Windows tested on a real machine, page parity covers the other two

Co-authored-by: MY Li <lmy3520@live.com>
2026-11-22 17:10:20 +01:00
Precious Okwu 9e981f75bf CLI: kiri domains shows, sets and resets the domain routers' ports (#626) 2026-11-20 15:43:42 +01:00
Precious Okwu 1acf6c99ef Networks: a container can leave its first network, as with Docker (#418) (#584) 2026-11-19 17:00:34 +01:00
Precious Okwu 23226f8254 USB: a device that drops off the Mac's bus is attached again when it comes back (#212) 2026-11-14 12:42:31 +01:00
Precious Okwu a705eb16a6 Docs: Linux engine start, the docker.sock link and IPv6 networks (#87) 2026-11-09 04:45:50 +01:00
Precious Okwu 2af64d8868 Builds: amd64 steps run through Rosetta on Apple silicon, not QEMU (#70) 2026-11-08 12:43:31 +01:00
Precious Okwu 15c6bd7a48 Kiri 0.1.14 2026-11-02 18:32:31 +01:00