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.
17 lines
499 B
17 lines
499 B
8 years ago
|
Write-Host Starting test
|
||
|
|
||
8 years ago
|
$ErrorActionPreference = 'SilentlyContinue';
|
||
8 years ago
|
docker kill whoamitest
|
||
|
docker rm -f whoamitest
|
||
|
|
||
8 years ago
|
$ErrorActionPreference = 'Stop';
|
||
8 years ago
|
Write-Host Starting container
|
||
8 years ago
|
docker run --name whoamitest -p 8080:8080 -d whoami
|
||
8 years ago
|
Start-Sleep 15
|
||
|
Write-Host Testing from another container
|
||
8 years ago
|
docker run --rm microsoft/nanoserver powershell -command invoke-webrequest -usebasicparsing http://whoamitest:8080
|
||
8 years ago
|
|
||
8 years ago
|
$ErrorActionPreference = 'SilentlyContinue';
|
||
8 years ago
|
docker kill whoamitest
|
||
|
docker rm -f whoamitest
|