Có gì mới trong 0.11.0
Each project can have its own engine: skrog target create installs a second,
fully isolated one, and skrog use switches docker between them. The default
engine moves to 29.9.2, with Go and containerd security fixes. skrog compact
works again on WSL 3.0, and --distro can no longer act on the wrong engine.
Security
- The default engine is 29.9.2, built with Go 1.26.10, with containerd 2.3.7.
Go 1.26.10 is the whole of moby 29.9.2: it rejects TLS chains through eight eMudhra
intermediates whose keys were compromised (CVE-2026-111943), so a pull from a registry
that still chains through one now fails verification instead of succeeding. containerd
moves from 2.3.6 to 2.3.7, the patch on the same line, for CVE-2026-95839 and
GHSA-8647-2jxj-p2rc (a crafted image manifest, or a registry's Content-Length, could
crash containerd) and GHSA-5p7c-hggf-c748 (a CRI-plugin mount leak). moby 29.9.1 took
containerd 2.4.2 for the first two; staying on 2.3 gets them without a minor-version
move. runc and BuildKit are unchanged. Existing installs
move with skrog engine upgrade; 29.9.0 stays in the manifest, so skrog engine rollback returns to it.
Fixed
- skrog compact works on WSL 3.0 (#560).
It failed twice over. WSL 3.0's wsl --exec does not find tools in /sbin by name, so
the first step failed with execvpe(fstrim) failed; it now runs /sbin/fstrim. And the
wait for WSL to release the disk ended at once, because opening the disk now succeeds
while the utility VM still holds it, so the compaction failed with "being used by another
process". It now retries the compaction itself until the disk is released (about a
minute) or --wait runs out. compact also no longer boots an engine that was already
stopped just to stop it, which with --no-trim saves that minute.
- skrog compact says up front when Windows cannot compact the disk (#565).
Windows will not compact a sparse, compressed or encrypted .vhdx, and WSL 3.0.2+ makes
a disk sparse (wsl --manage --set-sparse true) without any unsafe flag. compact
trimmed and stopped the engine, then failed with Windows' raw "virtual disk system
limitation" error. It now checks before anything is stopped, --dry-run included, names
the cause, and gives the remedy (for sparse: --set-sparse false with WSL idle).
- --distro no longer acts on a different engine (#561).
Wherever an install exists, its manifest decided the distro and the flag was silently
ignored: skrog compact --distro X compacted the installed engine instead. compact,
enable-gpu, relocate, serve, proxy, supervise and uninstall now refuse a
--distro that differs from the installed one (exit 2) and point at --state-dir, which
is how another install is reached. The installed name itself, in any case, is accepted.
- wsl.auto-memory-reclaim now takes effect (#550).
skrog wsl-config apply wrote autoMemoryReclaim under [wsl2], but WSL reads it only
as experimental.autoMemoryReclaim: it ignored the line and printed Unknown key 'wsl2.autoMemoryReclaim' when the VM started, so the setting never worked. It is now
written under [experimental], and a line an earlier release left under [wsl2] is
moved by the next apply — the diff shows the move before anything is written. skrog wsl-config and skrog top no longer report the ignored line as in effect.
wsl-config --json pending changes gain section, and moved_from for a move.
- skrog upgrade --apply under winget or scoop does what its plan says (#545).
It listed the app step, upgraded the engine and CLI, and only then refused the app
because a package manager owns it, exiting 1 after doing everything else. Ownership is
now decided before the plan is shown: the app step appears under "will not run" with the
manager's command, the rest is applied, and the exit is 0. With only the app behind it
prints the command without asking. --force still replaces the binary.
Added
- An engine per project (#539).
skrog target create <name> installs a second, fully independent engine: its own WSL
distro and virtual disk, supervisor, pipe (\\.\pipe\skrog-<name>), docker context
(skrog-<name>), images, containers, volumes, settings and snapshots. A poisoned
image in one cannot be run from another, and each can pin its own dockerd version.
skrog use <name>|local switches docker (and everything that follows the docker
context) between the shared engine, a named engine and a remote; skrog target list
shows all three with state, dockerd version and disk, per engine and in total;
skrog target remove deletes one, and nothing else. An engine is created stopped,
started by skrog use, and idle-stopped like any other, so the cost is disk rather
than memory. skrog remote use still works and is the same command. Names are
lowercase letters, digits, - and _; local and engine are reserved, and a name
cannot be both an engine and a remote. See docs/targets.md.
- target: in skrog.yaml. skrog install --config creates the named engine when
it is missing, converges the file's settings onto it, and selects it. It is target:
rather than the engine: the design drafted, because engine: already holds
daemon.json settings.
- skrog autostart --engine <name> (and skrog target create --autostart) gives one
named engine its own logon entry, a separate Run-key value, leaving the default
engine's alone. Named engines do not start at logon unless asked.
- skrog engine, skrog config and skrog status act on the current target when
--state-dir is not given, so skrog engine upgrade changes the engine docker is
talking to. Nothing changes, and nothing extra is run, on a machine with no named
engines. skrog status --json gains target, additively.
- The tray follows the current target. The dot describes the engine docker is on, the
tooltip names it when it is a named engine, and Start, Stop, Restart and Open logs act
on it. The menu is still the same seven items.
- skrog doctor judges the disk floor against every engine. The free-space check
uses the fullest volume any engine lives on, lists what each holds, and names
skrog target remove as the way out.
Known limits
- Emulation (emulation.platforms) registers binfmt_misc handlers, which are kernel
state shared by every WSL2 distro. Stopping or removing any engine deregisters them
for all, so with several engines running an idle-stop of one can take foreign
architecture support away from another until an engine next starts.
- On engine 29.9.0, docker run output was sometimes lost right after a start
(#569): exit 0, empty stdout, in 4 of 23
runs measured immediately after a start, against 0 of 53 on 29.9.2. Not introduced by
this release, and the cause is not yet known. It matters here because skrog engine rollback from 29.9.2 returns to 29.9.0.
Changed
- skrog uninstall also removes the named engines under the same state directory, and its
prompt lists them; running it against a named engine's own state directory is refused in
favour of skrog target remove.
- The install flags that choose which engine to install and from where (--locked,
--offline, --rootfs-url, --engine-version) are now one shared code path used by
skrog install and skrog target create. Behaviour is unchanged.
- The verified rootfs download is cached in the base state directory when installing a
named engine, so a second engine does not download it again.
- The bundled docker CLI is 29.9.2, from 29.8.2. amd64 is Docker's own zip, checksum
computed from the official download as before; the arm64 docker.exe is built from
docker/cli at commit a82e528, pinned, with Go 1.26.10 to match the engine. Compose,
buildx and the credential helper are unchanged.