You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
445 B
13 lines
445 B
# Repair Docker Desktop engine (500 / pipe / stuck)
|
|
# Usage: npm run dev:repair-docker
|
|
|
|
$ErrorActionPreference = "Stop"
|
|
. (Join-Path $PSScriptRoot "lib.ps1")
|
|
|
|
Write-DevLog "=== docker engine repair ===" "Info"
|
|
Repair-DockerEngine -MaxAttempts 1 | Out-Null
|
|
if ((Get-DockerEngineStatus) -ne "ok") {
|
|
throw "docker repair failed. Use: npm run dev:infra:setup (WSL mysql/redis, no Docker Desktop)"
|
|
}
|
|
Write-DevLog "docker engine repair done" "Ok"
|