[Why] When docker's image name contains multilevel addresses, it needs to intercept again.
image name: docker.io/openeuler20.03-LTS package name: openeuler20.03-LTS.img
Signed-off-by: Wang Chenglong 18509160991@163.com --- container/docker-rootfs/run | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/container/docker-rootfs/run b/container/docker-rootfs/run index cf91337..8a7b315 100755 --- a/container/docker-rootfs/run +++ b/container/docker-rootfs/run @@ -11,7 +11,8 @@ check_cmd_input "$@" check_passwd_file "$root_pwd_file" load_docker_img "$1" echo $docker_name_tag -IMAGE_PACK=$(echo ${docker_name_tag%%:*}.cgz) +IMAGE_NAME=${docker_name_tag%%:*} +IMAGE_PACK=$(echo ${IMAGE_NAME##*/}.cgz)
start=( docker run