From 2607c66f02adb3b77b0f3037e5d9f3a335e0faf9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BD=B3=E9=A9=B9=20=E4=B8=87?= Date: Fri, 1 Mar 2024 14:00:12 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E9=9D=9Ehost=E6=A8=A1?= =?UTF-8?q?=E5=BC=8F=E6=97=B6=E5=90=AF=E5=8A=A8=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- script/cdvr/startcdvr.sh | 4 ++-- script/default_args.sh | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/script/cdvr/startcdvr.sh b/script/cdvr/startcdvr.sh index f503c26..33e9134 100755 --- a/script/cdvr/startcdvr.sh +++ b/script/cdvr/startcdvr.sh @@ -156,7 +156,7 @@ function docker_run(){ docker run \ --name $CDVR_DOCKER_CONTAINER_NAME \ --net $DOCKER_NETWORK \ - --ip $LocIP\ + --ip $DOCKER_CDVR_IP\ --restart always \ --privileged=true \ -m $CDVR_MEMORY_LIMIT \ @@ -169,7 +169,7 @@ function docker_run(){ docker run \ --name $CDVR_DOCKER_CONTAINER_NAME \ --net $DOCKER_NETWORK \ - --ip $LocIP\ + --ip $DOCKER_CDVR_IP\ --restart always \ --privileged=true \ -v $CDVR_DOCKER_PATH:/MyData \ diff --git a/script/default_args.sh b/script/default_args.sh index 71bedfa..c9c62a7 100644 --- a/script/default_args.sh +++ b/script/default_args.sh @@ -18,6 +18,7 @@ DOCKER_NETWORK_IPS=${DOCKER_NETWORK_IPS:-"172.29.108"} DOCKER_GATEWAY_HOST=${DOCKER_GATEWAY_HOST:-"$DOCKER_NETWORK_IPS.1"} DOCKER_CVCLUSTER_IP=${DOCKER_CVCLUSTER_IP:-"$DOCKER_NETWORK_IPS.254"} +DOCKER_CDVR_IP=${DOCKER_CDVR_IP:-"$DOCKER_NETWORK_IPS.250"} DOCKER_GW_IP=${DOCKER_GW_IP:-"$DOCKER_NETWORK_IPS.249"} DOCKER_GB2JT_IP=${DOCKER_GB2JT_IP:-"$DOCKER_NETWORK_IPS.248"} DOCKER_GBSIP_IP=${DOCKER_GBSIP_IP:-"$DOCKER_NETWORK_IPS.247"}