惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

V
V2EX
博客园 - 叶小钗
WordPress大学
WordPress大学
N
Netflix TechBlog - Medium
M
MIT News - Artificial intelligence
美团技术团队
aimingoo的专栏
aimingoo的专栏
博客园_首页
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Microsoft Security Blog
Microsoft Security Blog
Last Week in AI
Last Week in AI
The GitHub Blog
The GitHub Blog
小众软件
小众软件
T
Tailwind CSS Blog
Martin Fowler
Martin Fowler
B
Blog RSS Feed
月光博客
月光博客
量子位
H
Hackread – Cybersecurity News, Data Breaches, AI and More
Hugging Face - Blog
Hugging Face - Blog
IT之家
IT之家
Y
Y Combinator Blog
B
Blog
MyScale Blog
MyScale Blog

博客园 - shiningrise

Admin.NET开源版微服务改造记录 基于openspec-cn的SDD规范驱动开发实战 osharp集成Yitter.IdGenerator并实现分布式ID osharp多租户方案 deepseek本地部署简要教程 WinForm 直接运行 Admin.NET 在 ASP.NET Core 中创建 gRPC 客户端和服务器 Refit使用入门 Ocelot集成Consul实现api网关与服务发现 dotnet微服务之API网关Ocelot Abp源码分析之Serilog日志 Abp源码分析之虚拟文件系统Volo.Abp.VirtualFileSystem Abp源码分析之Abp本地化 Abp源码分析之Abp最小系统 类似hbuildx的软件 魔法商店题解 k8s配置文件 阿里k8s负载均衡型服务加证书方法 python远程登录Admin.NET
docker私有注册表
shiningrise · 2024-11-20 · via 博客园 - shiningrise

使用docker创建私有注册表

version: "3"
services:
  proxy:
    image: nginxproxy/nginx-proxy
    container_name: nginx-proxy
    restart: always
    ports:
      - 80:80
      - 443:443
    labels:
      com.github.jrcs.letsencrypt_nginx_proxy_companion.nginx_proxy: "true"
    volumes:
      - ./nginx-proxy/certs:/etc/nginx/certs:ro
      - ./nginx-proxy/config/nginx/conf.d:/etc/nginx/conf.d
      - ./nginx-proxy/acme:/acmecerts
      - ./nginx-proxy/vhost.d:/etc/nginx/vhost.d
      - ./nginx-proxy/html:/usr/share/nginx/html
      - /var/run/docker.sock:/tmp/docker.sock:ro
    networks:
      - default

  registry:
    image: registry:2
    container_name: registry
    privileged: true
    restart: always
    tty: true
    environment:
    - VIRTUAL_HOST=reg.wxy.ink
    - VIRTUAL_PORT=5000
    volumes:
    - /etc/localtime:/etc/localtime
    - /etc/default/locale:/etc/default/locale
    - /data/registry:/var/lib/registry

查看私有注册表中的镜像

curl -X GET https://reg.wxy.ink/v2/_catalog

curl -X GET https://reg.wxy.ink/v2/snowdreamtech/frpc/tags/list

作者

吴晓阳(手机:13736969112微信同号)