mirror of
https://github.com/DaoCloud/public-image-mirror.git
synced 2025-08-08 18:18:55 +08:00
Update correct image
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user