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