```yaml services: registry: image: registry:2.8.2 volumes: - "./config.yml:/etc/docker/registry/config.yml" - "./data:/var/lib/registry" ports: - "5000:5000/tcp" ``` ```yaml version: 0.1 log: fields: service: registry storage: cache: blobdescriptor: inmemeory filesystem: rootdirectory: /var/lib/registry http: addr: :5000 headers: X-Content-Type-Options: [nosniff] health: storagedriver: enabled: true interval: 10s threshold: 3 proxy: remoteurl: https://registry-1.docker.io username: yezzi password: 123456 ``` Loading... ```yaml services: registry: image: registry:2.8.2 volumes: - "./config.yml:/etc/docker/registry/config.yml" - "./data:/var/lib/registry" ports: - "5000:5000/tcp" ``` ```yaml version: 0.1 log: fields: service: registry storage: cache: blobdescriptor: inmemeory filesystem: rootdirectory: /var/lib/registry http: addr: :5000 headers: X-Content-Type-Options: [nosniff] health: storagedriver: enabled: true interval: 10s threshold: 3 proxy: remoteurl: https://registry-1.docker.io username: yezzi password: 123456 ``` 最后修改:2023 年 08 月 15 日 © 允许规范转载 打赏 赞赏作者 支付宝微信 赞 1 如果觉得我的文章对你有用,请随意赞赏