第一步:配置Artifactory远程仓库(安装时默认已配置好)
第二步:修改docker的配置
编辑/etc/docker/daemon.json增加
"insecure-registries": ["192.168.1.20:8082"]
第三步:测试
docker login 192.168.1.20:8082 -u admin -p admin123
docker pull docker.io/library/busybox:1.28
由于JCR默认不支持yum,所以我们需要利用Generic类型仓库。
第一步:配置Artifactory远程仓库
第二步:创建yum的配置
创建下述文件:/etc/yum.repos.d/artifactory
cat > /etc/yum.repos.d/artifactory.repo << 'EOF'
[BaseOS]
name=CentOS-BaseOS-$releasever - Media
baseurl=http://192.168.1.20:8082/artifactory/centos8.3-baseos
gpgcheck=0
enabled=1
[AppStream]
name=CentOS-AppStream-$releasever - Media
baseurl=http://192.168.1.20:8082/artifactory/centos8.3-appstream
gpgcheck=0
enabled=1
EOF
第三步:测试
yum clean all
yum makecache
yum update
第一步:配置Artifactory远程仓库
第二步:创建apt的配置
cat > /etc/apt/sources.list.d/artifactory.list << 'EOF'
deb http://192.168.1.20:8082/artifactory/ubuntu/ jammy main restricted
deb http://192.168.1.20:8082/artifactory/ubuntu/ jammy-updates main restricted
deb http://192.168.1.20:8082/artifactory/ubuntu/ jammy universe
deb http://192.168.1.20:8082/artifactory/ubuntu/ jammy-updates universe
deb http://192.168.1.20:8082/artifactory/ubuntu/ jammy multiverse
deb http://192.168.1.20:8082/artifactory/ubuntu/ jammy-updates multiverse
deb http://192.168.1.20:8082/artifactory/ubuntu/ jammy-backports main restricted universe multiverse
deb http://192.168.1.20:8082/artifactory/ubuntu/ jammy-security main restricted
deb http://192.168.1.20:8082/artifactory/ubuntu/ jammy-security universe
deb http://192.168.1.20:8082/artifactory/ubuntu/ jammy-security multiverse
EOF
第三步:测试
sudo apt update
第一步:配置Artifactory远程仓库(安装时默认已配置好)
第二步:配置helm repository
helm repo add local http://192.168.1.20:8082/artifactory/chartcenter
第三步:测试
helm repo update
helm fetch local/rimusz/nfs-client-provisioner
捷蛙的部署参考下文:
(93条消息) 在Ubuntu中部署JFrog Container Registry_dxwd320的博客-CSDN博客