设为首页 加入收藏

TOP

搭建自己的harbor仓库并上传和下载镜像(五)
2023-07-23 13:40:06 】 浏览:80
Tags:harbor
nlinux.org.cert 23ef17b3e9fa2069fe5a190dd8b428de harbor1.yanlinux.org.crt #在docker服务端下载证书 [root@rocky8 ~]$ mkdir /etc/docker/certs.d/harbor1.yanlinux.org/ -p [root@rocky8 ~]$ cd /etc/docker/certs.d/harbor1.yanlinux.org/ [root@rocky8 ~]$ scp 10.0.0.18:/root/certs/{harbor1.yanlinux.org.cert,harbor1.yanlinux.org.key,ca.crt} /etc/docker/certs.d/harbor1.yanlinux.org/ #在harbor服务器上拷贝证书到/etc/docker下,实现harbor服务器的上传与下载镜像 [root@rocky8 harbor1.yanlinux.org]$ scp -r /etc/docker/certs.d/ 10.0.0.18:/etc/docker/ [root@rocky8 ~]$ systemctl restart docker #登录账户 [root@rocky8 ~]$ docker login harbor1.yanlinux.org #打标签 [root@rocky8 ~]$ docker tag alpine-base:3.17.2 harbor1.yanlinux.org/test/alpine-base:3.17.2 [root@rocky8 ~]$ docker tag nginx-alpine:1.22.1 harbor1.yanlinux.org/test/nginx-alpine:1.22.1 [root@rocky8 ~]$ docker tag alpine-jdk:8u202 harbor1.yanlinux.org/test/alpine-jdk:8u202 [root@rocky8 ~]$ docker tag tomcat-base:v8.5.85 harbor1.yanlinux.org/test/tomcat-base:v8.5.85 [root@rocky8 ~]$ docker tag haproxy-alpine:2.1.2 harbor1.yanlinux.org/test/haproxy-alpine:2.1.2 #上传镜像 [root@rocky8 ~]$ docker push harbor1.yanlinux.org/test/alpine-base:3.17.2 The push refers to repository [harbor1.yanlinux.org/test/alpine-base] 87c8bbf9e2e8: Pushed 0ba47f277eb9: Pushed 7cd52847ad77: Pushed 3.17.2: digest: sha256:d2aaa9d3e26da43e5b83d02b92aab403f33e9d4c9a3e9171a14ef314692e4a7a size: 947 [root@rocky8 ~]$ docker push harbor1.yanlinux.org/test/nginx-alpine:1.22.1 The push refers to repository [harbor1.yanlinux.org/test/nginx-alpine] fa80f3c76ef6: Pushed 01c65a043850: Pushed adbe8696b1b4: Pushed 1e356a844716: Pushed ebb41e59056a: Pushed 0ba47f277eb9: Mounted from test/alpine-base 7cd52847ad77: Mounted from test/alpine-base 1.22.1: digest: sha256:104304b5133de8acd1978485c2d980748dab7314d267d29b4278f22573010058 size: 1784 [root@rocky8 ~]$ docker push harbor1.yanlinux.org/test/alpine-jdk:8u202 The push refers to repository [harbor1.yanlinux.org/test/alpine-jdk] d88c104af48e: Pushed 4236564ab151: Pushed 31af46d91eef: Pushed 87c8bbf9e2e8: Mounted from test/alpine-base 0ba47f277eb9: Mounted from test/nginx-alpine 7cd52847ad77: Mounted from test/nginx-alpine 8u202: digest: sha256:6a93df44d46e757dda66a6c2f8ea28c11d3954d3c714392b608c40f45b2e2413 size: 1574 [root@rocky8 ~]$ docker push harbor1.yanlinux.org/test/tomcat-base:v8.5.85 The push refers to repository [harbor1.yanlinux.org/test/tomcat-base] 6d1a20593ad3: Pushed 8d7f5b279153: Pushed 0abb32fe3733: Pushed d88c104af48e: Mounted from test/alpine-jdk 4236564ab151: Mounted from test/alpine-jdk 31af46d91eef: Mounted from test/alpine-jdk 87c8bbf9e2e8: Mounted from test/alpine-jdk 0ba47f277eb9: Mounted from test/alpine-jdk 7cd52847ad77: Mounted from test/alpine-jdk v8.5.85: digest: sha256:a19bb6ff4a407cbd9881a27b8ca412b6bd45d5fd0b8bff35e6a6d759813fb273 size: 2200 [root@rocky8 ~]$ docker push harbor1.yanlinux.org/test/haproxy-alpine:2.1.2 The push refers to repository [harbor1.yanlinux.org/test/haproxy-alpine] 406ce5ba5219: Pushed 3ecff3848c3e: Pushed 89180f31278f: Pushed 87c8bbf9e2e8: Mounted from test/tomcat-base 0ba47f277eb9: Mounted from test/tomcat-base 7cd52847ad77: Mounted from test/tomcat-ba
首页 上一页 2 3 4 5 下一页 尾页 5/5/5
】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
上一篇Linux系统对于实施人员的价值 下一篇搭建两台web服务器基于HAProxy实..

最新文章

热门文章

Hot 文章

Python

C 语言

C++基础

大数据基础

linux编程基础

C/C++面试题目