From 56a4b44db829294178c20174b6909b1fc862c950 Mon Sep 17 00:00:00 2001 From: "nilesh.p" Date: Sat, 10 Oct 2026 13:57:15 +0530 Subject: [PATCH] new changes --- docker.ps1 | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/docker.ps1 b/docker.ps1 index e70046b..46a68be 100644 --- a/docker.ps1 +++ b/docker.ps1 @@ -56,6 +56,13 @@ param( $ErrorActionPreference = 'Stop' $Root = $PSScriptRoot +# Refresh PATH from the registry so `docker` resolves even in a terminal opened +# before Docker Desktop was installed (a common first-run gotcha). +$env:Path = (@( + [Environment]::GetEnvironmentVariable('Path', 'Machine'), + [Environment]::GetEnvironmentVariable('Path', 'User') + ) | Where-Object { $_ }) -join ';' + function Write-Step($m) { Write-Host "==> $m" -ForegroundColor Cyan } function Write-Ok($m) { Write-Host " + $m" -ForegroundColor Green } function Write-Warn2($m){ Write-Host " ! $m" -ForegroundColor Yellow }