Skip to content

Commit 042098c

Browse files
azure-sdkbenbp
andauthored
Print example docker commands after building stress image (Azure#22983)
Co-authored-by: Ben Broderick Phillips <[email protected]>
1 parent 6816384 commit 042098c

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

eng/common/scripts/stress-testing/stress-test-deployment-lib.ps1

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,15 @@ function DeployStressPackage(
169169

170170
Run docker build -t $imageTag -f $dockerFile $dockerBuildFolder
171171
if ($LASTEXITCODE) { return }
172+
173+
Write-Host "`nContainer image '$imageTag' successfully built. To run commands on the container locally:" -ForegroundColor Blue
174+
Write-Host " docker run -it $imageTag" -ForegroundColor DarkBlue
175+
Write-Host " docker run -it $imageTag <shell, e.g. 'bash' 'pwsh' 'sh'>" -ForegroundColor DarkBlue
176+
Write-Host "To show installed container images:" -ForegroundColor Blue
177+
Write-Host " docker image ls" -ForegroundColor DarkBlue
178+
Write-Host "To show running containers:" -ForegroundColor Blue
179+
Write-Host " docker ps" -ForegroundColor DarkBlue
180+
172181
Run docker push $imageTag
173182
if ($LASTEXITCODE) {
174183
if ($login) {

0 commit comments

Comments
 (0)