Open lucasdengcn opened 2 months ago
registry.cn-hangzhou.aliyuncs.com/ymmirror/clickhouse-server:24.6-alpine
registry.cn-hangzhou.aliyuncs.com/ymmirror/chproxy:v1.26.4
registry.cn-hangzhou.aliyuncs.com/ymmirror/consul:1.15.4
registry.cn-hangzhou.aliyuncs.com/ymmirror/coredns:latest
registry.cn-hangzhou.aliyuncs.com/ymmirror/drone:latest
registry.cn-hangzhou.aliyuncs.com/ymmirror/drone-runner-docker:latest
registry.cn-hangzhou.aliyuncs.com/ymmirror/elasticsearch:8.11.0
registry.cn-hangzhou.aliyuncs.com/ymmirror/kibana:8.11.0
registry.cn-hangzhou.aliyuncs.com/ymmirror/emqx:5.4.1
registry.cn-hangzhou.aliyuncs.com/ymmirror/etcd:3.4.14
registry.cn-hangzhou.aliyuncs.com/ymmirror/flagsmith:latest
registry.cn-hangzhou.aliyuncs.com/ymmirror/gitea:1.20.1
registry.cn-hangzhou.aliyuncs.com/ymmirror/grafana:latest
registry.cn-hangzhou.aliyuncs.com/ymmirror/cp-kafka:7.5.0
registry.cn-hangzhou.aliyuncs.com/ymmirror/cp-schema-registry:7.5.0
registry.cn-hangzhou.aliyuncs.com/ymmirror/cp-kafka-rest:7.5.0
registry.cn-hangzhou.aliyuncs.com/ymmirror/kafka-ui:latest
registry.cn-hangzhou.aliyuncs.com/ymmirror/keycloak:22.0.3
registry.cn-hangzhou.aliyuncs.com/ymmirror/kogito-data-index-postgresql:1.44.1
registry.cn-hangzhou.aliyuncs.com/ymmirror/kogito-jobs-service-postgresql:1.44.1
registry.cn-hangzhou.aliyuncs.com/ymmirror/loki:2.9.4
registry.cn-hangzhou.aliyuncs.com/ymmirror/nginx:latest
registry.cn-hangzhou.aliyuncs.com/ymmirror/promtail:3.0.0
registry.cn-hangzhou.aliyuncs.com/ymmirror/metabase:latest
registry.cn-hangzhou.aliyuncs.com/ymmirror/minio:latest
registry.cn-hangzhou.aliyuncs.com/ymmirror/mysql:8.3
registry.cn-hangzhou.aliyuncs.com/ymmirror/nexus3:latest
registry.cn-hangzhou.aliyuncs.com/ymmirror/opa:latest
registry.cn-hangzhou.aliyuncs.com/ymmirror/prometheus:latest
registry.cn-hangzhou.aliyuncs.com/ymmirror/pyroscope:latest
registry.cn-hangzhou.aliyuncs.com/ymmirror/redis-stack-server:latest
registry.cn-hangzhou.aliyuncs.com/ymmirror/redis:latest
registry.cn-hangzhou.aliyuncs.com/ymmirror/redisinsight:latest
registry.cn-hangzhou.aliyuncs.com/ymmirror/tempo:latest
registry.cn-hangzhou.aliyuncs.com/ymmirror/traefik:latest
registry.cn-hangzhou.aliyuncs.com/ymmirror/vault:1.14
clickhouse/clickhouse-server:24.6-alpine
contentsquareplatform/chproxy:v1.26.4
hashicorp/consul:1.15.4
coredns/coredns:latest
drone/drone:latest
drone/drone-runner-docker:latest
docker.elastic.co/elasticsearch/elasticsearch:8.11.0
docker.elastic.co/kibana/kibana:8.11.0
emqx:5.4.1
bitnami/etcd:3.4.14
flagsmith/flagsmith:latest
gitea/gitea:1.20.1
grafana/grafana:latest
confluentinc/cp-kafka:7.5.0
confluentinc/cp-schema-registry:7.5.0
confluentinc/cp-kafka-rest:7.5.0
provectuslabs/kafka-ui:latest
bitnami/keycloak:22.0.3
quay.io/kiegroup/kogito-data-index-postgresql:1.44.1
quay.io/kiegroup/kogito-jobs-service-postgresql:1.44.1
grafana/loki:2.9.4
nginx:latest
grafana/promtail:3.0.0
metabase/metabase:latest
minio/minio:latest
docker.io/bitnami/mysql:8.3
sonatype/nexus3:latest
openpolicyagent/opa:latest
prom/prometheus:latest
pyroscope/pyroscope:latest
redis/redis-stack-server:latest
redis:latest
redis/redisinsight:latest
grafana/tempo:latest
traefik:latest
hashicorp/vault:1.14
20240606之后,应该加速的方式都逐步不可用了
获取阿里云镜像加速地址
根据提示配置镜像加速
sudo mkdir -p /etc/docker
sudo tee /etc/docker/daemon.json <<-'EOF'
{
"registry-mirrors": ["https://xxxx.mirror.aliyuncs.com"]
}
EOF
sudo systemctl daemon-reload
sudo systemctl restart docker
将镜像信息部分的的两个文件保存到本地
然后愉快的使用以下脚本跑起来
适用于无法拉取外网地址或拉取外网地址缓慢
img=$(cat dockerhub-image.yml)
for i in ${img[@]}
do
tagName=$(echo $i | awk -F "/" '{print $NF}');
docker pull $i;
sourceTag=$(cat images-init.yml | grep $tagName);
docker tag $i $sourceTag;
done
适用于内网环境需要将公网镜像打包到内网镜像仓库
img=$(cat dockerhub-image.yml)
for i in ${img[@]}
do
tagName=$(echo $i | awk -F "/" '{print $NF}');
filePrefix=$(echo $tagName | awk -F ":" '{print $1}');
fileSuffix=$(echo $tagName | awk -F ":" '{print $NF}');
fileName=$filePrefix--$fileSuffix.gz
docker pull $i;
mkdir localImage || echo 0
docker save $i -o localImage/$fileName
done
# tar -zcf localImage.tar.gz localImage
# 将压缩好的镜像文件放在localImage目录
img=$(ls localImage)
# 本地仓库信息 LOCAL_REGISTRY 和 LOCAL_NAMESPACE 需要指定
# 如镜像local.harbor.dev/ingress-nginx/kube-webhook-certgen:v1.1.1
# LOCAL_REGISTRY则为:local.harbor.dev
# LOCAL_NAMESPACE则为:ingress-nginx
LOCAL_REGISTRY=
LOCAL_NAMESPACE=
# 首先解压镜像
for i in ${img[@]}
do
docker load -i $i;
done
# 解压完成后,重新打tag并且上传指定仓库,需要确保需要有对应仓库的权限
img=$(cat dockerhub-image.yml)
for i in ${img[@]}
do
tagName=$(echo $i | awk -F "/" '{print $NF}');
specialTag=$LOCAL_REGISTRY/$LOCAL_NAMESPACE/$tagName;
docker tag $i $specialTag;
docker push $specialTag;
done
clickhouse/clickhouse-server:24.6-alpine contentsquareplatform/chproxy:v1.26.4 hashicorp/consul:1.15.4 coredns/coredns:latest drone/drone:latest drone/drone-runner-docker:latest docker.elastic.co/elasticsearch/elasticsearch:8.11.0 docker.elastic.co/kibana/kibana:8.11.0 emqx:5.4.1 bitnami/etcd:3.4.14 flagsmith/flagsmith:latest gitea/gitea:1.20.1 grafana/grafana:latest confluentinc/cp-kafka:7.5.0 confluentinc/cp-schema-registry:7.5.0 confluentinc/cp-kafka-rest:7.5.0 provectuslabs/kafka-ui:latest bitnami/keycloak:22.0.3 quay.io/kiegroup/kogito-data-index-postgresql:1.44.1 quay.io/kiegroup/kogito-jobs-service-postgresql:1.44.1 grafana/loki:2.9.4 nginx:latest grafana/promtail:3.0.0 metabase/metabase:latest minio/minio:latest docker.io/bitnami/mysql:8.3 sonatype/nexus3:latest openpolicyagent/opa:latest prom/prometheus:latest pyroscope/pyroscope:latest redis/redis-stack-server:latest redis:latest redis/redisinsight:latest grafana/tempo:latest traefik:latest hashicorp/vault:1.14