mailcow/002-build-pdns.sh

20 lines
445 B
Bash
Raw Normal View History

#!/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 \
--network-alias=pdns \
--name ${NAME} \
2016-12-14 05:12:54 +08:00
-d andryyy/mailcow-dockerized:pdns