Skip to content

Commit dce4bb5

Browse files
author
Kamruz Jaman
committed
Added check to ensure Docker is running
1 parent 60c2e07 commit dce4bb5

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Create-SitecoreModule-DockerAssetImage.ps1

+6
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,12 @@ Write-Host "`n"
209209
tree $moduleDirectory /f /a
210210

211211
if ($Tag) {
212+
213+
if (-Not (docker ps)) {
214+
Write-Host "FAILED - Could not create the Docker image. Are you sure the Docker daemon is running?" -ForegroundColor Red
215+
Break
216+
}
217+
212218
Write-Host "========================================================================================================================"
213219
Write-Host "`n"
214220
Write-Host "START - [Building Docker Image] -" $Tag.ToLower()

0 commit comments

Comments
 (0)