为了方便地管理 Docker Registry,我们将使用Joxit/docker-registry-ui作为 UI。这个项目可用来可视化管理 Docker Registry。 # 启动 Docker Registry UIdockerrun-d-p8080:80--nameregistry-ui--linkregistry:registry joxit/docker-registry-ui:latest# 此命令的作用:# -d:后台运行容器# -p 8080:80:将主机的8080...
步骤2:检查Docker Registry UI服务是否正常运行 接下来,我们需要确保Docker Registry UI服务正常运行。可以通过以下命令检查服务状态: dockerps 1. 确认Docker Registry UI容器正在运行,如果不在运行,可以使用以下命令启动UI服务: dockerrun-d-p8080:8080--nameregistry-ui joxit/docker-registry-ui:static 1. 步骤3:...
root@localhost:~/portus/Portus/examples/compose# docker login registry.jdzx.local # 上传镜像 root@localhost:~/portus/Portus/examples/compose# docker tag nginx:1.14-alpine registry.jdzx.local/library/nginx:1.14-alpine root@localhost:~/portus/Portus/examples/compose# docker push registry.jdzx.local/lib...
container_name: registry-ui image: klausmeyer/docker-registry-browser:1.7.4 restart: always ports: - 8001:8080 environment: - DOCKER_REGISTRY_URL=http://registry-server:5000/v2 # registry端口号,不是宿主机端口号,所以不要改 - PUBLIC_REGISTRY_URL=192.168.1.3:8000 # 复制PULL命令的地址,将IP改为...
#主机地址hostname=192.168.1.52#使用httpsui_url_protocol=https#ssl证书ssl_cert=/home/docker/certs/registry.crt ssl_cert_key=/home/docker/certs/registry.key 修改docker-compose.yml #修改其中的-v的目录文件,如: volumes:-/home/docker/harbor/log/harbor/:/var/log/docker/:z ...
(1)、创建UI界面所面的配置文件路径,即: mkdir -p /opt/docker_reg/ui/config 在该目录下创建配置文件registry-ui.yml,配置内容为: registry:url: http://registry:5000/v2 name: 192.168.208.141:5000 readonly: false auth: enabled: true key: /conf/auth.key issuer: test 注意: registry.name的配置...
docker registry web 当前registry启动的容器是:registry-srv 执行如下命令启动registry web docker run -d -p 8080:8080 --name registry-web --link registry-srv -e REGISTRY_URL=http://registry-srv:5000/v2 -e REGISTRY_NAME=localhost:5000 hyper/docker-registry-web...
私有仓库对镜像的格式要求:registry_url:port/ImageName:tag 3.5 推送到私有仓库 3.6 验证推送是否成功,私有仓库是否存在该镜像,访问http://192.168.100.63:5000/v2/_catalog查看 该页面比较简陋,也看不到tag,所有推荐使用hyper/docker-registry-webUI界面
(1)、创建UI界面所面的配置文件路径,即: mkdir-p /opt/docker_reg/ui/config 在该目录下创建配置文件registry-ui.yml,配置内容为: registry:url:http://registry:5000/v2name:192.168.208.141:5000readonly:falseauth:enabled:truekey:/conf/auth.keyissuer:test ...