Created
January 22, 2024 18:37
-
-
Save santarinto/4d95842389ebac65297fb96c334b43dd to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$containerId = (docker ps -q --filter ancestor=mariadb) | |
if ($containerId -ne $null) { | |
# Остановка контейнера | |
docker stop $containerId | |
Write-Host "Docker container with ID $containerId has been stopped." | |
} else { | |
Write-Host "No running MariaDB Docker container found." | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment