Provides PowerShell 7 scripts for compiling and installing Moby on Windows ARM64
Author: linghengqianCreated Sep 23, 2026Updated Sep 23, 2026
Labelskind/feature
Description
- As is evident, the location mentioned at https://docs.docker.com/engine/install/binaries/#install-server-and-client-binaries-on-windows ( https://download.docker.com/win/static/stable/ ) contains only pre-built binaries for Windows x64.
- Specifically, to enable the use of Moby on the Windows ARM64 GitHub Actions runner (as seen in https://github.com/version-fox/vfox-flutter/pull/24 ), I had to manually write a PowerShell 7 script to install Git and Go, and then manually compile the Moby source code. Logic is like,
$git = "$env:TEMP\git-installer.exe"
& curl.exe -fsSL -o $git "https://github.com/git-for-windows/git/releases/download/v2.55.0.windows.5/Git-2.55.0.5-arm64.exe"
Start-Process $git -Wait -ArgumentList '/VERYSILENT', '/NORESTART', '/SP-', '/SUPPRESSMSGBOXES'
$mobyVersion = '29.8.1'
$root = 'C:\vfox-docker'
New-Item -ItemType Directory -Force -Path $root | Out-Null
$goMsi = "$env:TEMP\go.msi"
& curl.exe -fsSL -o $goMsi 'https://go.dev/dl/go1.27.1.windows-arm64.msi'
& msiexec.exe /i $goMsi /quiet /norestart
Remove-Item $goMsi
$env:GOPATH = Join-Path $root 'gopath'
New-Item -ItemType Directory -Force -Path $env:GOPATH | Out-Null
$env:PATH = "C:\Program Files\Go\bin;$env:GOPATH\bin;$env:PATH"
$moby = Join-Path $root 'moby'
git clone --depth 1 --branch "docker-v$mobyVersion" https://github.com/moby/moby.git $moby
go install github.com/tc-hib/[email protected]
$env:DOCKERCLI_VERSION = $mobyVersion
$env:VERSION = $mobyVersion
Push-Location $moby
& .\hack\make.ps1 -Client -Daemon
Pop-Location
$bin = Join-Path $moby 'bundles'
$env:PATH = "$bin;$env:PATH"
$dataRoot = Join-Path $root 'data'
$log = Join-Path $root 'dockerd.log'
$dockerdArgs = "--data-root `"$dataRoot`" --debug --exec-opt isolation=process"
Start-Process -FilePath (Join-Path $bin 'dockerd.exe') -ArgumentList $dockerdArgs -RedirectStandardOutput $log -RedirectStandardError (Join-Path $root 'dockerd.err.log')
docker info- Providing PowerShell 7 scripts for compiling and installing Moby on Windows ARM64 clearly helps developers streamline this process.
Source: moby/moby