看不到Harbor我也睡不著覺啊
阿新 • • 發佈:2017-05-22
unit cati 分享 eat 執行 detail 軟件 名稱 http 註意 : Docker 服務重啟後,執行
上午打球,下午陪小孩子看上海科技展,晚上搞定harbor。
完美!!!:)
參考文檔:
https://www.dwhd.org/20161023_110618.html
http://blog.csdn.net/cuipengchong/article/details/68496627
http://www.tuicool.com/articles/RvAF7nn
http://www.cnblogs.com/HendSame-JMZ/p/6020580.html
但安裝docker-compose時註意pip軟件包的名稱。
yum install python-pip
然後,啟停harbor都是通過compose文件操作的。
註意 : Docker 服務重啟後,執行 docker-compose start
時有一定幾率出現如下錯誤(或者目錄已存在等錯誤),此時在 docker-compose stop
一下然後在啟動即可,實在不行再次重啟 Dokcer 服務,千萬不要手賤的去刪文件(別問我怎麽知道的)
幾個配置還是搞了一陣,關鍵幾個文件內容如下:
cat harbor.cfg ## Configuration file of Harbor #The IP address or hostname to access admin UI and registry service. #DO NOT use localhost or 127.0.0.1, because Harbor needs to be accessed by external clients. hostname = 192.168.1.111#The protocol for accessing the UI and token/notification service, by default it is http. #It can be set to https if ssl is enabled on nginx. ui_url_protocol = http #The password for the root user of mysql db, change this before any production use. db_password = password #Maximum number of job workers in job service max_job_workers = 3
at /usr/lib/systemd/system/docker.service
[Unit]
Description=Docker Application Container Engine
Documentation=https://docs.docker.com
After=network.target firewalld.service
[Service]
Type=notify
# the default is not to use systemd for cgroups because the delegate issues still
# exists and systemd currently does not support the cgroup feature set required
# for containers run by docker
EnvironmentFile=-/etc/default/docker
# ExecStart=/usr/bin/dockerd
ExecStart=/usr/bin/dockerd --insecure-registry 192.168.1.111
ExecReload=/bin/kill -s HUP $MAINPID
# Having non-zero Limit*s causes performance problems due to accounting overhead
# in the kernel. We recommend using cgroups to do container-local accounting.
LimitNOFILE=infinity
LimitNPROC=infinity
LimitCORE=infinity
看不到Harbor我也睡不著覺啊