Docker 部署镜像加速服务
一. 编写docker-compose.yml
vim docker-compose
version: '3.8'
services:
registry:
image: registry:2
environment:
REGISTRY_PROXY_REMOTEURL: https://registry-1.docker.io
#REGISTRY_MIRROR_SOURCE: https://registry-1.docker.io
#REGISTRY_MIRROR_SOURCE_INDEX: https://registry-1.docker.io/v2/
volumes:
- ./data:/var/lib/registry
二. 启动服务
docker-compose up -d
评论已关闭