Skip to content

Commit 85012b6

Browse files
committed
fix: listen on loopback address
1 parent 9fc0477 commit 85012b6

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

oci/private/registry/crane_launcher.sh.tpl

+1-4
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,7 @@ function start_registry() {
77
local deadline="${3:-5}"
88
99
mkdir -p "${storage_dir}"
10-
# --blobs-to-disk uses go's os.TempDir() function which is equal to TMPDIR under *nix.
11-
# https://pkg.go.dev/os#TempDir
12-
TMPDIR="${storage_dir}" TMP="${storage_dir}" \
13-
"${CRANE_REGISTRY_BIN}" registry serve --blobs-to-disk >> $output 2>&1 &
10+
"${CRANE_REGISTRY_BIN}" registry serve --disk="${storage_dir}" --address=localhost:0 >> $output 2>&1 &
1411
1512
local timeout=$((SECONDS+${deadline}))
1613

0 commit comments

Comments
 (0)