Update correct image

This commit is contained in:
Shiming Zhang 2024-06-24 11:05:45 +08:00
parent 417bdacde8
commit cdc68da332
1 changed files with 4 additions and 1 deletions

View File

@ -17,7 +17,10 @@ function guess_image() {
if [[ "${image}" == *"hub.docker.com/r/"* ]]; then
image="docker.io/${image##*hub.docker.com\/r\/}"
fi
if [[ "${image%%/*}" != *"."* ]] || [[ "${image}" != *"/"* ]]; then
if [[ "${image}" != *"/"* ]]; then
image="library/${image}"
fi
if [[ "${image%%/*}" != *"."* ]]; then
image="docker.io/${image}"
fi
if [[ "${image}" != *":"* ]]; then