cheap medications premarin 1.25mg tablets estrogen contents, cheap medications buy wellbutrin no rx needed, cheap online buy baclofen online, cheap online order flagyl er pay pal online without prescription, pharmacy cheapest where to buy buy doxycycline online, online cheap medications buy overnight delivery lasix fedex, buy cheap purchase diflucan, cheap online buy neurontin online overnight cod, cheap pharmacy fedex acyclovir overnight without a rx, order cheap what is norvasc, buying cheap buy arimidex free consultation,
首页 > Docker & K8S, Mesos & DC/OS > Docker镜像仓库Harbor

Docker镜像仓库Harbor

2018年8月13日 发表评论 阅读评论

Habor是由VMWare公司开源的容器镜像仓库。Habor是在Docker Registry上进行了相应的企业级扩展,这些企业级特性包括:管理用户界面,基于角色的访问控制 ,AD/LDAP集成以及审计日志等。

Harbor-01

Harbor-02

jdos

jdos

Harbor-03

下载 https://storage.googleapis.com/harbor-releases/release-1.4.0/harbor-online-installer-v1.4.0.tgz

设置 harbor.cfg 中 MySQL、PostgreSQL数据库信息。

创建File Sharing -> data

drwxr-xr-x    9 huihoo staff   288  4  3 16:56  data

Harbor-04

$ docker info | grep 'Logging Driver'
Logging Driver: json-file

harbor设置的是syslog

vim /etc/syslog.conf
*.* @127.0.0.1:514

$ ps -e | grep syslogd
重启
$ sudo launchctl unload /System/Library/LaunchDaemons/com.apple.syslogd.plist
$ sudo launchctl load /System/Library/LaunchDaemons/com.apple.syslogd.plist

$ ./prepare
$ docker-compose up

Harbor-05

$ docker info
Logging Driver: json-file

Plugins:
 Volume: local
 Network: bridge host ipvlan macvlan null overlay
 Log: awslogs fluentd gcplogs gelf journald json-file logentries splunk syslog

将日志方式改为:json-file,修改docker-compose.yml

替换所有services部分的logging

version: '2.1'
x-logging:
  &default-logging
  options:
    max-size: '12m'
    max-file: '5'
  driver: json-file

services:
  registry:
    logging: *default-logging
  mysql:
    logging: *default-logging

日志问题解决,现在的问题是:

Harbor-06

harbor.cfg: hostname = localhost:8060

修改端口映射 docker-compose.yml

    ports:
      - 8060:80   <--- 修改端口映射
      - 443:443
      - 4443:4443
$ docker-compose down -v
$ sudo ./prepare
$ sudo docker-compose up
$ docker-compose ps

在249上安装,harbor.cfg mysql不改,hostname = localhost:8086

# netstat -pna | grep 443

tcp        0      0 0.0.0.0:443             0.0.0.0:*               LISTEN      4472/haproxy

443被占,nginx无法启动。

把443:443改为4433:4433

继续有WARNING: no logs are available with the ‘syslog’ log driver问题,改为json-file

docker-compose up -d 后台运行

http://192.168.0.249:8086/  admin/Harbor12345

Harbor-07

Harbor-08


接入另一个IP的Docker私有仓库

Harbor-09


分类: Docker & K8S, Mesos & DC/OS 标签:
灰狐会员
欢迎扫码加入我们:灰狐的朋友们
我们关注和讨论的话题有:区块链、人工智能、物联网、编程语言 ...
内容导航



除非注明,开放博客文章均为原创,转载请以超链接形式标明原始出处:开放博客,谢谢。

  1. 本文目前尚无任何评论.
  1. 本文目前尚无任何 trackbacks 和 pingbacks.