@@ -35,6 +35,7 @@ INSTALL_PROXY=""
3535INSTALL_DNS=" "
3636INSTALL_SOCK_FILE=" /var/run/docker.sock"
3737INSTALL_IN_PODMAN=false
38+ INSTALL_IPV6=n
3839
3940BACKUP_CONTAINER_NAME=" "
4041
@@ -179,6 +180,8 @@ function upgrade_panel() {
179180 if [[ -n " $ADD_HOSTS " ]]; then
180181 RUN_COMMAND=" $RUN_COMMAND $ADD_HOSTS "
181182 fi
183+
184+ RUN_COMMAND=" $RUN_COMMAND --log-driver json-file --log-opt max-size=5m --log-opt max-file=10 "
182185
183186 log " $TXT_UPGRADE_BACKUP $INSTALL_CONTAINER_NAME "
184187 BACKUP_CONTAINER_NAME=" $INSTALL_CONTAINER_NAME -${CONTAINER_ID: 0: 12} "
@@ -694,7 +697,7 @@ function main(){
694697 install_dir
695698 install_port
696699 install_sock
697-
700+
698701 DOCKER_CMD=" run -d --name ${INSTALL_CONTAINER_NAME} --restart=always --hostname dpanel.pod.dpanel.local"
699702 if ! $INSTALL_IN_PODMAN ; then
700703 DOCKER_CMD=" $DOCKER_CMD --add-host host.dpanel.local:host-gateway"
@@ -708,6 +711,11 @@ function main(){
708711 DOCKER_CMD=" $DOCKER_CMD --dns $INSTALL_DNS "
709712 fi
710713
714+ if [[ " $INSTALL_IPV6 " =~ ^[yY]$ ]]; then
715+
716+ docker network create dpanel-local --ipv6
717+ fi
718+
711719 if [[ " $INSTALL_IMAGE " == * lite ]]; then
712720 DOCKER_CMD=" $DOCKER_CMD -p ${INSTALL_PORT} :8080"
713721 else
@@ -720,6 +728,8 @@ function main(){
720728 echo -e " docker $DOCKER_CMD \n"
721729 exit 1
722730 fi
731+
732+ DOCKER_CMD=" $DOCKER_CMD --log-driver json-file --log-opt max-size=5m --log-opt max-file=10 "
723733
724734 docker $DOCKER_CMD
725735
0 commit comments