2016-12-10 03:39:02 +08:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
. mailcow.conf
|
|
|
|
|
|
|
|
NAME="rmilter-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 \
|
2016-12-13 04:53:58 +08:00
|
|
|
-v ${PWD}/data/conf/rmilter/:/etc/rmilter.conf.d/:ro \
|
2016-12-10 03:39:02 +08:00
|
|
|
--network=${DOCKER_NETWORK} \
|
|
|
|
-h rmilter \
|
2016-12-14 05:50:19 +08:00
|
|
|
--network-alias=rmilter \
|
2016-12-10 03:39:02 +08:00
|
|
|
--name ${NAME} \
|
2016-12-14 05:12:54 +08:00
|
|
|
-d andryyy/mailcow-dockerized:rmilter
|