almaops.ct_docker_registry
almaops.ct_docker_registry
部署 Docker 仓库(支持 Docker 镜像和 S3 后端)
描述
此角色用于部署一个包含 Docker 仓库的容器并进行配置。
默认配置提供您使用本地或 S3 存储的选项,启用仓库镜像以绕过 Docker Hub 拉取速率限制等。
示例
- role: almaops.docker
- role: almaops.ct_docker_registry
ct_docker_registry_ct_name: "registry-mirror"
ct_docker_registry_bind_addr: "{{ backnet_ip }}"
ct_docker_registry_port: "5000"
ct_docker_registry_enable_mirroring: true
ct_docker_registry_enable_s3_storage: true
ct_docker_registry_s3_akey: "<...>"
ct_docker_registry_s3_skey: "<...>"
ct_docker_registry_s3_region: "ru-central1"
ct_docker_registry_s3_endpoint: "https://storage.yandexcloud.net"
ct_docker_registry_s3_bucket: "myorg-dockerhub-mirror"
安装
此角色可以从 Ansible Galaxy 安装:
ansible-galaxy install almaops.ct_docker_registry
许可证
作者信息
德米特里·卡欣, freehck@freehck.com