diff --git a/oci/private/registry/crane_launcher.sh.tpl b/oci/private/registry/crane_launcher.sh.tpl index a7a04f01..e49cc097 100644 --- a/oci/private/registry/crane_launcher.sh.tpl +++ b/oci/private/registry/crane_launcher.sh.tpl @@ -8,12 +8,9 @@ function start_registry() { local registry_pid="$1/proc.pid" mkdir -p "${storage_dir}" - # --blobs-to-disk uses go's os.TempDir() function which is equal to TMPDIR under *nix. - # https://pkg.go.dev/os#TempDir - TMPDIR="${storage_dir}" TMP="${storage_dir}" \ - "${CRANE_REGISTRY_BIN}" registry serve --blobs-to-disk >> $output 2>&1 & + "${CRANE_REGISTRY_BIN}" registry serve --disk="${storage_dir}" --address=localhost:0 >> $output 2>&1 & echo "$!" > "${registry_pid}" - + local timeout=$((SECONDS+${deadline})) while [ "${SECONDS}" -lt "${timeout}" ]; do