fix: preserve apt network selection

This commit is contained in:
wlx committed 2026-08-06 17:35:01 +08:00
1 parent 78aeaec170
commit de384796c4
2 files changed
+4 -1

No files matched your search

+3
View File
@@ -24,6 +24,7 @@ docker_repository_url="${DOCKER_REPOSITORY_URL:-https://download.docker.com/linu
docker_gpg_url="${DOCKER_GPG_URL:-${docker_repository_url}/gpg}"
docker_gpg_fingerprint="9DC858229FC7DD38854AE2D88D81803C0EBFCD88"
docker_force_ipv4="${DOCKER_FORCE_IPV4:-1}"
docker_apt_force_ipv4="${DOCKER_APT_FORCE_IPV4:-0}"
"${sudo_command[@]}" timedatectl set-timezone "$timezone_name"
"${sudo_command[@]}" apt-get update
@@ -48,6 +49,8 @@ docker_curl_options=(
docker_apt_options=()
if [[ "$docker_force_ipv4" == "1" ]]; then
docker_curl_options+=(--ipv4)
fi
if [[ "$docker_apt_force_ipv4" == "1" ]]; then
docker_apt_options+=(-o Acquire::ForceIPv4=true)
fi