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 87245ba commit 2284a5bCopy full SHA for 2284a5b
azure-pipelines.yml
@@ -87,10 +87,16 @@ steps:
87
88
- script: dir $(Build.SourcesDirectory)/code-examples-php-private
89
90
-- task: CmdLine@2
91
- inputs:
92
- script: 'docker rm -f $(docker ps -a -q)'
93
- continueOnError: true
+- script: |
+ echo "Checking for running Docker containers..."
+ containers=$(docker ps -q)
+ if [ ! -z "$containers" ]; then
94
+ echo "Stopping running Docker containers..."
95
+ docker stop $(docker ps -q)
96
+ else
97
+ echo "No Docker containers are running."
98
+ fi
99
+ displayName: "check for running containers"
100
101
- script: |
102
echo "Checking for running Docker containers..."
0 commit comments