首页 > 其他分享 >docker本地搭建docker-registry及ui

docker本地搭建docker-registry及ui

时间:2024-09-27 16:47:13浏览次数:7  
标签:CATALOG ui registry docker true REGISTRY

version: "3.7"

services:
  registry-ui:
    image: joxit/docker-registry-ui:main
    restart: always
    ports:
      - 5080:80
    environment:
      - SINGLE_REGISTRY=true
      - REGISTRY_TITLE=Docker Registry UI
      - DELETE_IMAGES=true
      - SHOW_CONTENT_DIGEST=true
      - NGINX_PROXY_PASS_URL=http://registry:5000
      - SHOW_CATALOG_NB_TAGS=true
      - CATALOG_MIN_BRANCHES=1
      - CATALOG_MAX_BRANCHES=1
      - TAGLIST_PAGE_SIZE=100
      - REGISTRY_SECURED=false
      - CATALOG_ELEMENTS_LIMIT=1000
    container_name: registry-ui

  registry:
    image: registry:2
    restart: always
    ports:
      - 5000:5000
    environment:
      - REGISTRY_HTTP_HEADERS_ACCESS-CONTROL-ALLOW-ORIGIN=['*']
      - REGISTRY_STORAGE_DELETE_ENABLED=true
      - REGISTRY_HTTP_HEADERS_ACCESS-CONTROL-ALLOW-METHODS=['HEAD', 'GET', 'OPTIONS', 'DELETE']
      - REGISTRY_HTTP_HEADERS_ACCESS-CONTROL-EXPOSE-HEADERS=['Docker-Content-Digest']
      - X-CONTENT-TYPE-OPTIONS=[nosniff]
    container_name: registry
    volumes:
      - ./data:/var/lib/registry
      - ./conf/config.yml:/etc/docker/registry/config.yml

修改 vim / etc/docker/daemon.json

添加:

{
  "insecure-registries" : ["192.168.100.136:5000"]
}

 

标签:CATALOG,ui,registry,docker,true,REGISTRY
From: https://www.cnblogs.com/goPush/p/18436084

相关文章

  • docker目录清理
    步骤一:停止并删除不需要的容器首先,停止并删除所有不再需要的容器。列出所有运行中的容器:dockerps停止所有运行中的容器:dockerstop$(dockerps-q)删除所有停止的容器:dockercontainerprune-f步骤二:删除未使用的镜像删除所有未使用的镜像,包括悬空镜像......
  • Element UI 自定义Layout前端页面布局
    1.layout下新建front文件夹index.vue中内容<template><divclass="frontLayout"><el-container><el-header><divclass="navBar"><divclass="navBarLeft">......
  • Cognex Software Integration - (Vision Acquisition 取像)
    通过cognex-supportedframegrabber.FrameGrabbers,即图像采集卡。一、上面是图像采集卡,及其功能图像采集卡主要用于捕获视频信号中的特定帧图像,并将其转换为数字信号以便计算机进行处理和存储。它可以从各种视频源获取图像,如摄像机、录像机、医疗影像设备等。图像采集:能够......
  • JMeter的CLI模式(非GUI模式)常用命令
    JMeter的CLI模式(非GUI模式)常用命令ApacheJMeter是一款强大的开源性能测试工具,它支持图形用户界面(GUI)模式和非图形用户界面(CLI,即CommandLineInterface)模式。在实际的性能测试工作中,CLI模式因其能够减少资源消耗和提高测试效率而备受青睐。本文将详细介绍JMeter在CLI模式下的常......
  • Docker Init 实战详解:从入门到精通
    1.引言在容器化应用开发的世界里,Docker一直是首选工具。然而,对于初学者来说,创建Dockerfile和设置Docker环境可能是一个挑战。为了简化这个过程,Docker引入了dockerinit命令。本文将深入探讨DockerInit的方方面面,从其诞生背景到高级应用,为您提供全面的指南。©......
  • k8s离线部署v1.28.0版本(基于docker容器)
    1.环境配置主机名配置磁盘大小操作系统ip地址k8s-master2c4g50gcentos7.6192.168.100.194k8s-node12c4g50gcentos7.6192.168.100.195k8s-node22c4g50gcentos7.6192.168.100.196yum2c4g50gcentos7.6192.168.100.2012.必要环境准备1)关......
  • AM05 Workshop 2 - Data acquisition from Spotify API
    AM05Workshop2-DataacquisitionfromSpotifyAPIAM05Workshop2-DataacquisitionfromSpotifyAPIOverviewInthisworkshop,youwilllearnhowto:CreateaSpotifyApp:ObtainthenecessarycredentialstoaccesstheSpotifyAPI.RequestanAcces......
  • 关于Docker不能安装和拉取镜像解决办法,实测有效
    安装Docker**方式一:通过yum安装**sudoyuminstall-ydocker-cedocker-ce-clicontainerd.io**方式二:通过以下教程地址安装**https://github.com/tech-shrimp/docker_installer解决不能拉取镜像修改daemon.json文件vim/etc/docker/daemon.json#将以下内容复制......
  • Building Accounting Information System using MS Access
    DatabaseAssignment(Fall2024)BuildingAccountingInformationSystemusingMSAccess(100marks)allaccounts’beginningbalancesarezeroSPELimitedsellsdifferentkindsofsmartphonesthatitpurchasesfromdifferentmanufacturers.Itscustomer......
  • 学习011-03-03 Relationships Between Persistent Objects in Code and UI(代码和用户
    RelationshipsBetweenPersistentObjectsinCodeandUI(代码和用户界面中持久对象之间的关系)Whendesigningabusinessmodel,itcanbenecessarytosetspecificrelationshipsbetweenbusinessobjects.Thistopicdescribeshowtosettheserelationshipsbe......