Skip to content

Commit

Permalink
修复非host模式时启动报错
Browse files Browse the repository at this point in the history
  • Loading branch information
vanjoge committed Mar 1, 2024
1 parent a193e86 commit 2607c66
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions script/cdvr/startcdvr.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand All @@ -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 \
Expand Down
1 change: 1 addition & 0 deletions script/default_args.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"}
Expand Down

0 comments on commit 2607c66

Please sign in to comment.