nginx-proxy-auto-docker/test/cleanup_test_containers.sh
David Parrish 3a16eee5f7 Update tests for 'nginx-proxy-letsencrypt'.
Cleanup test containers when possible during tests.
Add 'test-clean' make target for remaining bat-* containers.
2015-12-13 19:57:17 -05:00

8 lines
120 B
Bash
Executable file

#!/bin/bash
# Remove "bats-*" containers
function teardown {
docker rm -f $(docker ps -aq -f name=bats-*)
}
teardown