搭建Registry&Harbor私有仓库、Dockerfile(八)

  registry:
    image: registry:latest
    container_name: registry
    restart: always
    volumes: 
    - /data/registry:/var/lib/registry
    environment:
    - VIRTUAL_HOST=registry.wxy.work
    - VIRTUAL_PORT=5000
# 指定私有仓库
# vim /etc/docker/daemon.json
{
  "insecure-registries":["registry.wxy.work"] 
}

 

posted @ 2023-12-04 08:41  shiningrise  阅读(2)  评论(0编辑  收藏  举报