1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
   | #!/usr/bin/env bash
  # creator: liusw # up-date: 2020/04/08 # description: pull_harbor.sh
  images="chartmuseum-photon:v0.9.0-v1.10.1 \  harbor-migrator:v1.10.1 \  redis-photon:v1.10.1 \  clair-adapter-photon:v1.0.1-v1.10.1 \  clair-photon:v2.1.1-v1.10.1 \  notary-server-photon:v0.6.1-v1.10.1 \  notary-signer-photon:v0.6.1-v1.10.1 \  harbor-registryctl:v1.10.1 \  registry-photon:v2.7.1-patch-2819-2553-v1.10.1 \  nginx-photon:v1.10.1 \  harbor-log:v1.10.1 \  harbor-jobservice:v1.10.1 \  harbor-core:v1.10.1 \  harbor-portal:v1.10.1 \  harbor-db:v1.10.1 \  prepare:v1.10.1"
  for image in ${images}; do   imagefull=registry.cn-shanghai.aliyuncs.com/leozhanggg/goharbor/${image}   echo "docker pull ${imagefull}"   docker pull ${imagefull}   docker tag ${imagefull} goharbor/${image}   docker rmi ${imagefull} done
   |