Uploaded images to Docker hub

This commit is contained in:
andryyy
2016-12-13 22:12:54 +01:00
parent 1910e3bc29
commit 94530fcecd
6 changed files with 5 additions and 105 deletions

View File

@@ -10,24 +10,9 @@ if [[ ! -z $(docker ps -af "name=${NAME}" -q) ]]; then
docker rm $(docker ps -af "name=${NAME}" -q)
fi
build() {
docker build --no-cache -t pdns data/Dockerfiles/pdns/.
}
if [[ ! -z "$(docker images -q pdns)" ]]; then
read -r -p "Found image locally. Delete local and rebuild without cache anyway? [y/N] " response
response=${response,,}
if [[ $response =~ ^(yes|y)$ ]]; then
docker rmi pdns
build
fi
else
build
fi
docker run \
-v ${PWD}/data/conf/pdns/:/etc/powerdns/ \
--network=${DOCKER_NETWORK} \
-h pdns \
--name ${NAME} \
-d pdns
-d andryyy/mailcow-dockerized:pdns