Skip to content

Commit d7795b2

Browse files
committed
fix: listen on loopback address
1 parent 7392c5b commit d7795b2

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

oci/private/registry/crane_launcher.sh.tpl

+2-5
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,9 @@ function start_registry() {
88
local registry_pid="$1/proc.pid"
99
1010
mkdir -p "${storage_dir}"
11-
# --blobs-to-disk uses go's os.TempDir() function which is equal to TMPDIR under *nix.
12-
# https://pkg.go.dev/os#TempDir
13-
TMPDIR="${storage_dir}" TMP="${storage_dir}" \
14-
"${CRANE_REGISTRY_BIN}" registry serve --blobs-to-disk >> $output 2>&1 &
11+
"${CRANE_REGISTRY_BIN}" registry serve --disk="${storage_dir}" --address=localhost:0 >> $output 2>&1 &
1512
echo "$!" > "${registry_pid}"
16-
13+
1714
local timeout=$((SECONDS+${deadline}))
1815

1916
while [ "${SECONDS}" -lt "${timeout}" ]; do

0 commit comments

Comments
 (0)