mirror of
https://github.com/wailsapp/wails.git
synced 2026-03-14 14:45:49 +01:00
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:
parent
67913a2e9b
commit
bc76ca97b3
1 changed files with 5 additions and 0 deletions
|
|
@ -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" {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue