Test after some seconds of sleep

Signed-off-by: Stefan Scherer <scherer_stefan@icloud.com>
pull/2/head 1.0.1
Stefan Scherer 7 years ago
parent a78cfbd1b4
commit 3a1e5dc633
No known key found for this signature in database
GPG Key ID: 5966AEAC37E957FA

@ -5,8 +5,11 @@ docker kill whoamitest
docker rm -f whoamitest
$ErrorActionPreference = 'Stop';
Write-Host Starting container
docker run --name whoamitest -p 8000:8000 -d whoami
$ip=$(docker inspect -f '{{ .NetworkSettings.Networks.nat.IPAddress }}' whoamitest)
Start-Sleep 15
Write-Host Testing from another container
docker run --rm microsoft/nanoserver powershell -command invoke-webrequest -usebasicparsing http://$($ip):8000
$ErrorActionPreference = 'SilentlyContinue';

Loading…
Cancel
Save