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)
just use: IMAGE_PACK=${IMAGE_NAME##*/}.cgz
Thanks, Luan Shengde
start=( docker run -- 2.23.0