设为首页 加入收藏

TOP

harbor仓库部署(四)
2023-07-23 13:29:41 】 浏览:81
Tags:harbor
验证证书的) # are all valid. rotate_size: 200M //日志滚动(每天会自动保存一定数量的日志会重命名为一个不同名字的文件) # The directory on your host that store log location: /var/log/harbor //日志存放 [root@harbor harbor]# ls LICENSE common.sh harbor.v2.5.3.tar.gz harbor.yml harbor.yml.tmpl install.sh prepare [root@harbor harbor]# ./install.sh //执行这个脚本 .... [Step 5]: starting Harbor ... [+] Running 10/10 ? Network harbor_harbor Created 0.1s ? Container harbor-log Started 0.8s ? Container redis Started 1.9s ? Container registryctl Started 1.9s ? Container registry Started 2.1s ? Container harbor-portal Started 2.1s ? Container harbor-db Started 2.0s ? Container harbor-core Started 2.8s ? Container harbor-jobservice Started 3.7s ? Container nginx Started 3.8s ? ----Harbor has been installed and started successfully.---- [root@harbor harbor]# ss -antl State Recv-Q Send-Q Local Address:Port Peer Address:Port Process LISTEN 0 128 0.0.0.0:22 0.0.0.0:* LISTEN 0 128 127.0.0.1:1514 0.0.0.0:* LISTEN 0 128 [::]:22 [::]:* LISTEN 0 128 [::]:80 [::]:*

使用IP登录管理Harbor:

登录成功后界面:

使用Harbor的注意事项:

  1. 在客户端上传镜像时一定要记得执行docker login进行用户认证,否则无法直接push
  2. 在客户端使用的时候如果不是用的https则必须要在客户端的/etc/docker/daemon.json配置文件中配置insecure-registries参数
  3. 数据存放路径应在配置文件中配置到一个容量比较充足的共享存储中
  4. Harbor是使用docker-compose命令来管理的,如果需要停止Harbor也应用docker-compose stop来停止,其他参数请--help
[root@harbor ~]# docker ps
CONTAINER ID   IMAGE                                COMMAND                  CREATED          STATUS                    PORTS                                   NAMES
27d358705acf   goharbor/harbor-jobservice:v2.5.3    "/harbor/entrypoint.…"   10 minutes ago   Up 10 minutes (healthy)                                           harbor-jobservice
917a7155677e   goharbor/nginx-photon:v2.5.3         "nginx -g 'daemon of…"   10 minutes ago   Up 10 minutes (healthy)   0.0.0.0:80->8080/tcp, :::80->8080/tcp   nginx
6230fed03071   goharbor/harbor-core:v2.5.3          "/harbor/entrypoint.…"   10 minutes ago   Up 10 minutes (healthy)                                           harbor-core
290772e4a195   goharbor/harbor-registryctl:v2.5.3   "/home/harbor/start.…"   10 minutes ago   Up 10 minutes (healthy)                                           registryctl
a78c22de9b73   goharbor/redis-photon:v2.5.3         "redis-server /etc/r…"   10 minutes ago   Up 10 minutes (healthy)                                           redis
ef4560266151   goharbor/registry-photon:v2.5.3      "/home/harbor/entryp…"   10 minutes ago   Up 10 minutes (healthy)                                           registry
282d2180241e   goharbor/harbor-db:v2.5.3            "/docker-entrypoint.…"   10 minutes ago   Up 10 minutes (healthy)                                           harbor-db
383c26c94150   goharbor/harbor-portal:v2.5.3        "nginx -g 'daemon of…"   10 minutes ago   Up 10 minutes (healthy)                                           harbor-portal
7fcbe6d544c9   goharbor/harbor-log:v2.5.3           "/bin/sh -c /usr/loc…"   11 minutes ago   Up 10 minutes (healthy)   127.0.0.1:1514->10514/tcp               harbor-log
[root@harbor ~]# cd /usr/local/harbor/
[root@harbor harbor]# ls
LICENSE  common.sh           harbor.v2.5.3.tar.gz  harbor.yml.tmpl  prepare
common   docker-compose.yml  harbor.yml            install.sh
[root@harbor harbor]# docker-compose stop
[+] Running 9/9
 ? Container harbor-jobservice  Stopped                                                 0.3s
 ? Container nginx              Stopped                                                 0.4s
 ? Container registryctl        Stopped                                                10.2s
 ? Container harbor-portal      Stopped                                                 0.2s
 ? Container harbor-core        Stopped                                                 0.3s
 ? Container harbor-db          Stopped                                                 0.3s
 ? Container redis              Stopped                                                 0.3s
 ? Container registry           Stopped                                                 0.3s
 ? Container harbor-log         Stopped                                                10.2s
[root@harbor harbor]# docker-compose start
[+] Running 9/9
 ? Container harbor-log         Started                                                 0.7s
 ? Container harbor-db          Started                                                 1.3s
 ? Container redis              Starte
首页 上一页 1 2 3 4 5 下一页 尾页 4/5/5
】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
上一篇Linux Shell 自动交互功能 下一篇docker容器网络

最新文章

热门文章

Hot 文章

Python

C 语言

C++基础

大数据基础

linux编程基础

C/C++面试题目