This repository has been archived on 2026-11-04. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
docker-openldap/test/delete-container.sh
T
2014-05-06 18:01:09 +02:00

12 lines
283 B
Bash

#!/bin/sh
# remove openldap test containers
sudo docker.io ps -a > testcontainers.out
if [ "$(grep -c "openldap-test-container" ./testcontainers.out)" -ne 0 ]; then
sudo docker.io stop openldap-test-container
sudo docker.io rm openldap-test-container
fi
rm testcontainers.out