zoukankan      html  css  js  c++  java
  • Docker私服Registry的Linux下安装

    配置文件docker-compose.yml

    version: '3.1'
    services:
      registry:
        image: registry
        restart: always
        container_name: registry
        ports:
          - 5000:5000
        volumes:
          - /usr/local/docker/registry/data:/var/lib/registry
    

    访问

    http://192.168.1.23/v2/
    

    客户端(部署业务的机器)

    修改/etc/docker/daemon.json

    {
      "registry-mirrors": ["https://meu6mpwh.mirror.aliyuncs.com"],
      "insecure-registries": ["192.168.1.23:5000"]
    }
    

    重启docker服务
    使用docker info检查是否生效

    Labels:
    Experimental: false
    Insecure Registries:
     192.168.1.23:5000
     127.0.0.0/8
    Registry Mirrors:
     https://meu6mpwh.mirror.aliyuncs.com/
    Live Restore Enabled: false
    Product License: Community Engine
    
    WARNING: No swap limit support
    

    Docker Registry WebUI

    version: '3.1'
    services:
      registry:
        image: registry
        restart: always
        container_name: registry
        ports:
          - 5000:5000
        volumes:
          - /usr/local/docker/registry/data:/var/lib/registry
    
      frontend:
        image: konradkleine/docker-registry-frontend:v2
        ports:
          - 80: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.1.23
          - ENV_DOCKER_REGISTRY_PORT=5000
    

    使用`http://192.168.1.23:80访问即可到仓库的前台

    没有修不好的电脑
  • 相关阅读:
    【40讲系列1】数组、链表
    更改凭证类型
    将公司代码设置给生产性的(不能删除业务数据的配置)
    使用参考过账
    查看凭证行项目
    查看凭证过账行项目
    预制凭证
    做凭证时凭证日期等于过账日期
    英语-20210302
    自动计算税额
  • 原文地址:https://www.cnblogs.com/duniqb/p/12702470.html
Copyright © 2011-2022 走看看