set -e AAA_URL=hub.aq2.cn BBB_URL=hub22.aq2.cn images=$(cat aaa3.log) for imageName in ${images[@]} ; do docker pull $AAA_URL/$imageName docker tag $AAA_URL/$imageName $BBB_URL/$imageName docker push $BBB_URL/$imageName #docker rmi $AAA_URL/$imageName 3docker rmi $BBB_URL/$imageName done
请登录之后再进行评论
登录