registry前端
系统: ubuntu-18.04.3-live-server-amd64
下载nexus镜像
docker pull registry:2.7
docker pull konradkleine/docker-registry-frontend:v2
编写docker-compose.yml
docker-compose.yml
version: '3'
services:
registry:
image: 'registry:2.7'
restart: always
ports:
- 5000:5000
volumes:
- data:/var/lib/registry
frontend:
image: konradkleine/docker-registry-frontend:v2
restart: always
ports:
- 80:80
environment:
- ENV_DOCKER_REGISTRY_HOST=172.20.10.3
- ENV_DOCKER_REGISTRY_PORT=5000
volumes:
data:
启动
docker-compose up -d