美文网首页
Linux安装JFrogContainerRegistry(JC

Linux安装JFrogContainerRegistry(JC

作者: 李小二的倔强 | 来源:发表于2021-07-29 10:56 被阅读0次

    曲木为直终必弯,养狼当犬看家难,墨染鸬鹚黑不久,粉刷乌鸦白不天,蜜饯黄莲终需苦,强摘瓜果不能甜,好事总得善人做,哪有凡人做神仙。

    一、安装启动

    1、下载安装包

    image.png image.png image.png

    2、启动软件

    启动目录
    /usr/local/pid/artifactory-jcr-7.19.8/app/bin
    启动命令
    nohup java -jar artifactory.sh &
    或者
    nohup java -jar artifactoryctl &
    

    然后我们打开本地浏览器,访问serverIP:8081
    用户名:admin
    密码:password

    二、软件配置

    新建仓库

    image.png image.png

    在docker的服务器的处理

    修改 配置文件
    vim /etc/docker/daemon.json
    

    新增内容
    注意 要加ip:port的方式添加json的方式

    {
          "insecure-registries":["127.0.0.1:8081","10.24.101.99:8081"]
    }
    
    {
    "insecure-registries":["10.0.88.179:8082"],
    "registry-mirrors":["https://registry.docker-cn.com"],
    "runtimes":{
      "nvidia":{
        "path": "nvidia-container-runtime",
        "runtimeArgs": []
        }
      }
    }
    

    添加完成之后重启docker

    systemctl restart docker
    

    打包上传镜像

    [root@localhost ~]# docker pull hello-world
    
    [root@localhost ~]# docker images
    REPOSITORY                      TAG                IMAGE ID            CREATED            SIZE
    docker.io/hello-world          latest              fce289e99eb9        11 months ago      1.84 kB
    
    [root@localhost ~]# docker tag docker.io/hello-world:latest 10.0.88.179:8082/opendatachain/hello-world:latest
    
    [root@centos7 bin]# docker push 10.0.88.179:8082/opendatachain/hello-world:latest
    The push refers to repository [10.0.88.179:8082/opendatachain/hello-world]
    f22b99068db9: Preparing 
    f22b99068db9: Pushed 
    latest: digest: sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792 size: 525
    

    这里我们可以看到,我们的镜像已经push成功了,下面我们可以在test仓库是右键点击刷新,或者刷新浏览器,这里我们看到hello-world已经成功上传。

    image.png

    拉取镜像

    [root@centos7 bin]# docker pull 10.0.88.179:8082/opendatachain/hello-world:latest
    latest: Pulling from opendatachain/hello-world
    b8dfde127a29: Pull complete 
    Digest: sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792
    Status: Downloaded newer image for 10.0.88.179:8082/opendatachain/hello-world:latest
    

    end.

    相关文章

      网友评论

          本文标题:Linux安装JFrogContainerRegistry(JC

          本文链接:https://www.haomeiwen.com/subject/ypizmltx.html