成人午夜视频全免费观看高清-秋霞福利视频一区二区三区-国产精品久久久久电影小说-亚洲不卡区三一区三区一区

K8S集群安裝之安裝Docker容器的私有倉庫

一、在運(yùn)維主機(jī)上安裝私有倉庫步驟

cd /opt
opt]# mkdir src
opt]# cd src/
# 可以去這個(gè)地址下載,也可以直接用我用的軟件包
https://github.com/goharbor/harbor/releases/tag/v1.8.3
src]# tar xf harbor-offline-installer-v1.8.3.tgz -C /opt/
src]# cd /opt/
opt]# mv harbor/ harbor-v1.8.3
opt]# ln -s /opt/harbor-v1.8.3/ /opt/harbor
opt]# cd harbor
harbor]# ll
harbor]# vi harbor.yml        #修改harbor文件的內(nèi)容
hostname: test-harbor.cedarhd.com
http:
  port: 180                                         #修改默認(rèn)端口,后面會(huì)安裝NGINX反代
data_volume: /data/harbor
location: /data/harbor/logs

harbor]# mkdir -p /data/harbor/logs
harbor]# yum install docker-compose -y     #harbor依賴的docer-compose組件運(yùn)行
harbor]# rpm -qa docker-compose
# out: docker-compose-1.18.0-4.el7.noarch
harbor]# ./install.sh          #安裝并運(yùn)行harbor
harbor]# docker-compose ps       #安裝當(dāng)前運(yùn)行的容器進(jìn)程
harbor]# docker ps -a
[root@test-operator certs]# docker ps
CONTAINER ID        IMAGE                                               COMMAND                  CREATED             STATUS                  PORTS                       NAMES
a5b3eb804709        goharbor/nginx-photon:v1.8.3                        "nginx -g 'daemon of…"   2 days ago          Up 47 hours (healthy)   0.0.0.0:180->80/tcp         nginx
84b61a9d364b        goharbor/harbor-jobservice:v1.8.3                   "/harbor/start.sh"       2 days ago          Up 47 hours                                         harbor-jobservice
9d6db31fdaa6        goharbor/harbor-portal:v1.8.3                       "nginx -g 'daemon of…"   2 days ago          Up 47 hours (healthy)   80/tcp                      harbor-portal
1b6169cd0b99        goharbor/harbor-core:v1.8.3                         "/harbor/start.sh"       2 days ago          Up 47 hours (healthy)                               harbor-core
cd132bba509a        goharbor/harbor-db:v1.8.3                           "/entrypoint.sh post…"   2 days ago          Up 47 hours (healthy)   5432/tcp                    harbor-db
9708d7e2ed19        goharbor/redis-photon:v1.8.3                        "docker-entrypoint.s…"   2 days ago          Up 47 hours             6379/tcp                    redis
293e1726014a        goharbor/registry-photon:v2.7.1-patch-2819-v1.8.3   "/entrypoint.sh /etc…"   2 days ago          Up 47 hours (healthy)   5000/tcp                    registry
4bfc311f4858        goharbor/harbor-registryctl:v1.8.3                  "/harbor/start.sh"       2 days ago          Up 47 hours (healthy)                               registryctl
80a12b72f589        goharbor/harbor-log:v1.8.3                          "/bin/sh -c /usr/loc…"   2 days ago          Up 47 hours (healthy)   127.0.0.1:1514->10514/tcp   harbor-log

harbor]# yum install nginx -y    #安裝NGINX反向代理到harbor180端口
harbor]# vi /etc/nginx/conf.d/harbor.od.com.conf
server {
    listen       80;
    server_name  harbor.od.com;

    client_max_body_size 1000m;

    location / {
        proxy_pass http://127.0.0.1:180;
    }
}
harbor]# nginx -t
harbor]# systemctl start nginx
harbor]# systemctl enable nginx

K8S集群安裝 之 安裝Docker容器的私有倉庫

成都創(chuàng)新互聯(lián)是一家專注于成都網(wǎng)站設(shè)計(jì)、網(wǎng)站制作與策劃設(shè)計(jì),離石網(wǎng)站建設(shè)哪家好?成都創(chuàng)新互聯(lián)做網(wǎng)站,專注于網(wǎng)站建設(shè)10年,網(wǎng)設(shè)計(jì)領(lǐng)域的專業(yè)建站公司;建站業(yè)務(wù)涵蓋:離石等地區(qū)。離石做網(wǎng)站價(jià)格咨詢:13518219792

二、推送一個(gè)鏡像到harbor私有倉庫

harbor]# docker pull nginx:1.7.9
harbor]# docker images|grep 1.7.9
harbor]# docker tag 84581e99d807 test-harbor.cedarhd.com/public/nginx:v1.7.9
harbor]# docker login test-harbor.cedarhd.com
賬號(hào):admin
密碼:Harbor12345
200 harbor]# docker push test-harbor.cedarhd.com/public/nginx:v1.7.9

當(dāng)前文章:K8S集群安裝之安裝Docker容器的私有倉庫
標(biāo)題路徑:http://jinyejixie.com/article6/poecog.html

成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供網(wǎng)站設(shè)計(jì)、響應(yīng)式網(wǎng)站、App設(shè)計(jì)、營銷型網(wǎng)站建設(shè)、標(biāo)簽優(yōu)化

廣告

聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請(qǐng)盡快告知,我們將會(huì)在第一時(shí)間刪除。文章觀點(diǎn)不代表本網(wǎng)站立場,如需處理請(qǐng)聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時(shí)需注明來源: 創(chuàng)新互聯(lián)

搜索引擎優(yōu)化
子长县| 桦南县| 七台河市| 盐边县| 政和县| 天津市| 玉门市| 筠连县| 石首市| 鄢陵县| 紫金县| 永昌县| 疏附县| 通辽市| 托克托县| 铜山县| 桐乡市| 方城县| 永修县| 寿阳县| 印江| 洛隆县| 财经| 全州县| 天柱县| 太仓市| 昌宁县| 闸北区| 收藏| 进贤县| 博湖县| 巩义市| 山丹县| 祁东县| 云浮市| 石河子市| 长武县| 镇赉县| 大丰市| 青岛市| 宣城市|