2016-12-12 01:58:29 +08:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
. mailcow.conf
|
|
|
|
|
|
|
|
NAME="pdns-mailcow"
|
|
|
|
|
|
|
|
echo "Stopping and removing containers with name tag ${NAME}..."
|
|
|
|
if [[ ! -z $(docker ps -af "name=${NAME}" -q) ]]; then
|
|
|
|
docker stop $(docker ps -af "name=${NAME}" -q)
|
|
|
|
docker rm $(docker ps -af "name=${NAME}" -q)
|
|
|
|
fi
|
|
|
|
|
|
|
|
docker run \
|
|
|
|
-v ${PWD}/data/conf/pdns/:/etc/powerdns/ \
|
|
|
|
--network=${DOCKER_NETWORK} \
|
|
|
|
-h pdns \
|
2016-12-14 05:30:45 +08:00
|
|
|
--network-alias=pdns \
|
2016-12-12 01:58:29 +08:00
|
|
|
--name ${NAME} \
|
2016-12-14 05:12:54 +08:00
|
|
|
-d andryyy/mailcow-dockerized:pdns
|