拉取镜像 最新的V2
docker pull konradkleine/docker-registry-frontend:v2
创建 docker-compose.yml
version: '3'
services:
frontend:
image: konradkleine/docker-registry-frontend:v2
restart: always
ports:
- 8080:80
volumes:
- ./certs/frontend.crt:/etc/apache2/server.crt:ro
- ./certs/frontend.key:/etc/apache2/server.key:ro
environment:
- ENV_DOCKER_REGISTRY_HOST=192.168.59.131
- ENV_DOCKER_REGISTRY_PORT=5000
docker-compose up -d
成功
来源:oschina
链接:https://my.oschina.net/u/4309098/blog/3414415