make sure docker is off, reduce wait time to 2 minutes

pull/10300/head
Sharif Elgamal 2021-01-28 11:07:41 -08:00
parent 4056b11295
commit 903212820d
1 changed files with 3 additions and 2 deletions

View File

@ -12,13 +12,14 @@
# See the License for the specific language governing permissions and
# limitations under the License.
Get-Process "*Docker Desktop*" | Stop-Process
$attempt = 10
while($attempt -ne 0) {
Write-Host "Attempt ", $attempt
Write-Host "Wait for 4 minutes"
Write-Host "Wait for 2 minutes"
& "C:\Program Files\Docker\Docker\Docker Desktop.exe"
Start-Sleep 240
Start-Sleep 120
$dockerInfo = docker info
Write-Host "Docker Info ", $dockerInfo
$serverVersion = $dockerInfo | Where-Object {$_ -Match "Server Version"}