搭建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:40  shiningrise  阅读(5)  评论(0编辑  收藏  举报
// 侧边栏目录 // https://blog-static.cnblogs.com/files/douzujun/marvin.nav.my1502.css