#!/bin/bash

LDAP_NAME=${LDAP_NAME:-openldap}

docker stop ${LDAP_NAME}
docker rm -v ${LDAP_NAME}
#!/bin/bash

LDAP_NAME=${LDAP_NAME:-openldap}

if [ -n "$(docker ps -a | grep ${LDAP_NAME})" ]; then
docker stop ${LDAP_NAME}
docker rm -v ${LDAP_NAME}
fi

Add condition for destroy container.
Add condition for destroy container.
