Skip to content

Commit

Permalink
[DOCKER] align the way of feching ip address
Browse files Browse the repository at this point in the history
  • Loading branch information
chia7712 committed Jan 18, 2025
1 parent ba0e208 commit b7aaf88
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docker/docker_build_common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
declare -r USER=astraea
declare -r BUILD=${BUILD:-false}
declare -r RUN=${RUN:-true}
declare -r ADDRESS=$([[ "$(which ipconfig)" != "" ]] && ipconfig getifaddr en0 || hostname -i | awk '{print $1}')
declare -r ADDRESS=$(ip -o -4 address show | awk ' NR==2 { gsub(/\/.*/, "", $4); print $4 } ')

# ===================================[functions]===================================

Expand Down

0 comments on commit b7aaf88

Please sign in to comment.