We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6a7fc5b commit 87245baCopy full SHA for 87245ba
azure-pipelines.yml
@@ -93,8 +93,15 @@ steps:
93
continueOnError: true
94
95
- script: |
96
- docker system prune -a --force
97
- displayName: "cleanup docker files"
+ echo "Checking for running Docker containers..."
+ containers=$(docker ps -q)
98
+ if [ ! -z "$containers" ]; then
99
+ echo "Stopping running Docker containers..."
100
+ docker stop $(docker ps -q)
101
+ else
102
+ echo "No Docker containers are running."
103
+ fi
104
+ displayName: "check for running containers"
105
106
107
echo "kill and remove any running containers"
0 commit comments