Docker 镜像代理使用说明

各镜像代理站点

docker.thzav.eu.org       #docker镜像           
quay.thzav.eu.org         #quay镜像           
gcr.thzav.eu.org          #gcr镜像            
k8s-gcr.thzav.eu.org      #k8s-gcr镜像             
k8s.thzav.eu.org          #k8s镜像             
ghcr.thzav.eu.org         #ghcr镜像             
cloudsmith.thzav.eu.org   #cloudsmith镜像            
ecr.thzav.eu.org          #ecr镜像  

带镜像仓库地址使用说明

1.拉取镜像

  # 拉取 redis 官方镜像(不带命名空间)
  docker pull docker.thzav.eu.org/redis

  # 拉取 rabbitmq 官方镜像
  docker pull docker.thzav.eu.org/library/rabbitmq
  
  # 拉取 postgresql 非官方镜像
  docker pull docker.thzav.eu.org/bitnami/postgresql

2.重命名镜像

  # 重命名 redis 镜像
  docker tag docker.thzav.eu.org/library/redis redis 
  
  # 重命名 postgresql 镜像
  docker tag docker.thzav.eu.org/bitnami/postgresql bitnami/postgresql

镜像源方式使用说明

1.添加镜像源

  # 添加镜像代理到 Docker 镜像源 执行以下命令:
  sudo tee /etc/docker/daemon.json << EOF
  {
    "registry-mirrors": ["https://docker.thzav.eu.org"]
  }
  EOF
  #

2.重启docker 执行以下两条命令:


  #重载systemd管理守护进程配置文件
  sudo systemctl daemon-reload 
  #重启 Docker 服务
  sudo systemctl restart docker 
  

3.拉取镜像

  # 拉取 redis 官方镜像
  docker pull redis   
  # 拉取 rabbitmq 非官方镜像
  docker pull bitnami/rabbitmq 
  # 拉取 postgresql 官方镜像
  docker pull postgresql