Skip to content

Commit

Permalink
fix: ip_local_port_range not support when docker_network is host
Browse files Browse the repository at this point in the history
  • Loading branch information
WGrape committed Mar 9, 2023
1 parent 2cf8c88 commit e89798c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion bin/ngxway
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ function start(){
fi
elif [ $dockerNetwork == "host" ]; then
docker run --ulimit nofile=$softNoFile:$hardNoFile \
--sysctl net.ipv4.ip_local_port_range="$ipLocalPortRange" \
--cpus=$maxNCPU \
--name ngxwayContainer -d --net=host -v $localVolumeLogsDir:/dist/logs/ ngxway
if [ $? -ne 0 ]; then
Expand Down
2 changes: 1 addition & 1 deletion ngxway.conf
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ max_ncpu=8
docker_network=host
# the linux system params in docker.
somaxconn=262155 # not support when docker_network is host
ip_local_port_range=1024 65535
ip_local_port_range=1024 65535 # not support when docker_network is host
soft_nofile=1048576
hard_nofile=1048576
tcp_syncookies=0 # deprecated
Expand Down

0 comments on commit e89798c

Please sign in to comment.