Ignore warnings while cleaning up

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

@ -1,12 +1,14 @@
$ErrorActionPreference = 'Stop';
Write-Host Starting test
$ErrorActionPreference = 'SilentlyContinue';
docker kill whoamitest
docker rm -f whoamitest
$ErrorActionPreference = 'Stop';
docker run --name whoamitest -p 8000:8000 -d whoami
$ip=$(docker inspect -f '{{ .NetworkSettings.Networks.nat.IPAddress }}' whoamitest)
docker run --rm microsoft/nanoserver powershell -command invoke-webrequest -usebasicparsing http://$($ip):8000
$ErrorActionPreference = 'SilentlyContinue';
docker kill whoamitest
docker rm -f whoamitest

Loading…
Cancel
Save