JCR artifactory 搭建

docker run --name artifactory-jcr -v /etc/artifactory/var/:/var/opt/jfrog/artifactory -d -p 8081:8081 -p 8082:8082 registry.cn-beijing.aliyuncs.com/qingfeng666/artifactory-jcr:latest

JCR 中有模拟仓库的概念,其实是多个仓库的逻辑总和,一般先推送到docker-local,然后推送test release 等仓库,一步一步走过不同的仓库

JCR artifactory 搭建_第1张图片

首先本地打镜像

docker build -t kubelog-jcr:1.0 .

#查看到镜像
[root@master Final]# docker images
REPOSITORY                                                        TAG            IMAGE ID       CREATED         SIZE
kubelog-jcr                                                       1.0            5e58420667f0   3 seconds ago   150MB
kubeblog                                                          1.0            bde40cb9373a   6 months ago    150MB
whp404/kubeblog                                                   1.0            6d0c8636aa9f   6 months ago    150MB
registry.aliyuncs.com/google_containers/kube-apiserver            v1.23.11       c322b936f9eb   6 months ago    135MB
registry.aliyuncs.com/google_containers/kube-proxy                v1.23.11       3bffc643d7e1   6 months ago    112MB
registry.aliyuncs.com/google_containers/kube-controller-manager   v1.23.11       33761bcb7720   6 months ago    125MB
registry.aliyuncs.com/google_containers/kube-scheduler            v1.23.11       4f8fc902050d   6 months ago    53.5MB
registry.aliyuncs.com/google_containers/etcd                      3.5.1-0        25f8c7f3da61   17 months ago   293MB
registry.aliyuncs.com/google_containers/coredns                   v1.8.6         a4ca41631cc7   18 months ago   46.8MB
registry.aliyuncs.com/google_containers/pause                     3.6            6270bb605e12   19 months ago   683kB
registry.cn-beijing.aliyuncs.com/qingfeng666/flannel              v0.13.0        e708f4bb69e3   2 years ago     57.2MB
registry.cn-beijing.aliyuncs.com/qingfeng666/dashboard            v2.0.4         46d0a29c3f61   2 years ago     225MB
mysql                                                             5.7.30         9cfcce23593a   2 years ago     448MB
registry.cn-beijing.aliyuncs.com/qingfeng666/artifactory-jcr      latest         a29093baef61   2 years ago     805MB
registry.cn-beijing.aliyuncs.com/qingfeng666/metrics-scraper      v1.0.4         86262685d9ab   3 years ago     36.9MB
openjdk                                                           8-jdk-alpine   a3562aa0b991   3 years ago     105MB


#打标签 ,注意后面的路径包含jcr的地址和仓库名
docker tag kubelog-jcr:1.0 art.local:8081/docker-local/kubelog:1.0
#去登录jcr
docker login
docker push
# 然后jcr管理后台就有了

JCR artifactory 搭建_第2张图片

你可能感兴趣的:(Docker,docker)