Skip to content

Commit 8133a78

Browse files
committed
ci: forced stop and remove all docker containers
1 parent cb56976 commit 8133a78

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.github/workflows/main.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,11 @@ jobs:
120120
apt install -y postgresql-14
121121
if: startsWith(matrix.database, 'postgres')
122122

123+
- name: stop and remove all docker containers
124+
run: |
125+
docker stop $(docker ps -a -q)
126+
docker rm $(docker ps -a -q)
127+
123128
# - name: start MongoDB docker
124129
# run: |
125130
# docker run -it --rm -d --name mongodb -e MONGO_ROOTUSER=${MONGO_ROOTUSER:-admin} -e MONGO_ROOTPASSWORD=${MONGO_ROOTPASSWORD:-admin} mongo:8.0.13

0 commit comments

Comments
 (0)