WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Commit e199d1f

Browse files
committed
docker: make DOCKER_ARMBIAN_BASE_IMAGE readonly after resolving DOCKER_ARMBIAN_BASE_COORDINATE_PREFIX
- otherwise stuff (eg extensions) might be tempted to change it, but that will only lead to pain
1 parent ebc129f commit e199d1f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/functions/host/docker.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,9 @@ function docker_cli_prepare() {
137137
display_alert "Using prebuilt Armbian image as base for '${wanted_os_tag}-${DOCKER_WANTED_RELEASE}'" "DOCKER_ARMBIAN_BASE_IMAGE: ${DOCKER_ARMBIAN_BASE_IMAGE}" "info"
138138
fi
139139

140+
# Make DOCKER_ARMBIAN_BASE_IMAGE readonly; no changes allowed after this point.
141+
declare -g -r DOCKER_ARMBIAN_BASE_IMAGE="${DOCKER_ARMBIAN_BASE_IMAGE}"
142+
140143
#############################################################################################################
141144
# Stop here if Docker can't be used at all.
142145
if ! is_docker_ready_to_go; then

0 commit comments

Comments
 (0)