docker webui搭建记录

本文深入探讨了DockerRegistry的配置细节,特别是web界面的配置文件位置与内容。通过对比/etc/config.yml与/conf/config.yml,揭示了实际生效的配置项,并提供了具体的配置示例。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

docker run -d  --name registry-web  --restart=always  -p 8000:8080  -v /registry/docker/web-config.yml:/etc/config.yml -v /registry/docker/config.yml:/conf/config.yml hyper/docker-registry-web

按照网上资料说的,只要修改/etc/config.yml 内容即可,实践中发现不行,
自己进入容器查看发现在/conf/config.yml 还有一个配置文件,应该是真正配置文件地方。
两个 文件如下:

registry:
  # Docker registry url
  url: http://192.168.172.170:5000/v2
  # Docker registry fqdn
  name: localhost:5000
  # To allow image delete, should be false
  readonly: false
  auth:
    # Disable authentication
    enabled: false
registry:
  # Docker registry url
  url: 'http://192.168.172.170:5000/v2'
  # web registry context path
  # empty string for root context, /app to make web registry accessible on http://host/app
  context_path: ''
  # Trust any SSL certificate when connecting to registry
  trust_any_ssl: false
  #  base64 encoded token for basic authentication
  basic_auth: ''
  # To allow image delete, should be false
  readonly: false
  # Docker registry fqdn
  name: '192.168.172.170:5000'
  # Authentication settings
  auth:
    # Enable authentication
    enabled: false
    # Allow registry anonymous access
    # allow_anonymous: true # not implemented
    # Token issuer
    # should equals to auth.token.issuer of docker registry
    issuer: 'test-issuer'
    # Private key for token signing
    # certificate used on auth.token.rootcertbundle should signed by this key
    key: /config/auth.key
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值