Document Docker API version and fallback behavior

Add comment explaining that pullViaDockerAPI uses API v1.44 (Docker 25.0+)
and that older versions gracefully fall back to CLI-based pulling.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Lea Anthony 2026-01-26 22:04:31 +11:00
commit bc76ca97b3

View file

@ -725,6 +725,11 @@ func (w *Wizard) startDockerPull() {
}()
}
// pullViaDockerAPI attempts to pull the image using Docker's HTTP API directly.
// This provides detailed progress tracking with layer-by-layer download status.
// Uses API v1.44 (Docker 25.0+). If this fails for any reason (older Docker version,
// permission issues, etc.), the caller falls back to pullViaDockerCLI which works
// with any Docker version but provides less detailed progress.
func (w *Wizard) pullViaDockerAPI() error {
socketPath := "/var/run/docker.sock"
if runtime.GOOS == "windows" {