harbor安装问题处理

2019独角兽企业重金招聘Python工程师标准>>> hot3.png

harbor安装版本

harbor-offline-installer-0.5.0
依赖版本
docker-compose(1.7.1+)

docker依赖 1.10以上的版本

安装手册

https://github.com/vmware/harbor/blob/0.5.0/docs/installation_guide.md

[docker@c7ks1 harbor]$ sudo ./install.sh

[Step 0]: checking installation environment ...

Note: docker version: 1.10.2
✖ Need to install docker-compose(1.7.1+) by yourself first and run this script again.
[docker@c7ks1 harbor]$ docker-compose version  #docker-compose版本已经是1.8的了
docker-compose version 1.8.0, build f3628c7
docker-py version: 1.9.0
CPython version: 2.7.9
OpenSSL version: OpenSSL 1.0.1e 11 Feb 2013
使用root用户来进行安装
[root@c7ks1 harbor]# pwd
/data/source/harbor
[root@c7ks1 harbor]# env
XDG_SESSION_ID=1
HOSTNAME=c7ks1
TERM=xterm
SHELL=/bin/bash
HISTSIZE=1000
SSH_CLIENT=192.168.40.26 61374 22
SSH_TTY=/dev/pts/0
USER=root
LS_COLORS=rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=01;05;37;41:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.axv=01;35:*.anx=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=01;36:*.au=01;36:*.flac=01;36:*.mid=01;36:*.midi=01;36:*.mka=01;36:*.mp3=01;36:*.mpc=01;36:*.ogg=01;36:*.ra=01;36:*.wav=01;36:*.axa=01;36:*.oga=01;36:*.spx=01;36:*.xspf=01;36:
MAIL=/var/spool/mail/root
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin
PWD=/data/source/harbor
LANG=en_US.UTF-8
HISTCONTROL=ignoredups
SHLVL=1
HOME=/root
LOGNAME=root
SSH_CONNECTION=192.168.40.26 61374 192.168.40.113 22
LESSOPEN=||/usr/bin/lesspipe.sh %s
XDG_RUNTIME_DIR=/run/user/0
_=/usr/bin/env
OLDPWD=/root
[root@c7ks1 harbor]# ./install.sh

[Step 0]: checking installation environment ...

Note: docker version: 1.10.2

Note: docker-compose version: 1.8.0

[Step 1]: loading Harbor images ...
Cannot connect to the Docker daemon. Is the docker daemon running on this host?
[root@c7ks1 harbor]# systemctl start docker.service
[root@c7ks1 harbor]# systemctl status docker.service
● docker.service - Docker Application Container Engine
   Loaded: loaded (/usr/lib/systemd/system/docker.service; disabled; vendor preset: disabled)
   Active: active (running) since Sat 2017-07-08 01:03:28 CST; 5s ago
     Docs: https://docs.docker.com
Main PID: 11221 (docker)
   CGroup: /system.slice/docker.service
           └─11221 /usr/bin/docker daemon -H fd://

Jul 08 01:03:27 c7ks1 docker[11221]: time="2017-07-08T01:03:27.309639712+08:00" level=info msg="[graphdriver] using prior storage driver \"devicemapper\""
Jul 08 01:03:27 c7ks1 docker[11221]: time="2017-07-08T01:03:27.328195721+08:00" level=info msg="Graph migration to content-addressability took 0.00 seconds"
Jul 08 01:03:27 c7ks1 docker[11221]: time="2017-07-08T01:03:27.418878207+08:00" level=info msg="Firewalld running: false"
Jul 08 01:03:27 c7ks1 docker[11221]: time="2017-07-08T01:03:27.817206920+08:00" level=info msg="Default bridge (docker0) is assigned with an IP address 172.17.0.0...IP address"
Jul 08 01:03:28 c7ks1 docker[11221]: time="2017-07-08T01:03:28.161473050+08:00" level=info msg="Loading containers: start."
Jul 08 01:03:28 c7ks1 docker[11221]: time="2017-07-08T01:03:28.161611067+08:00" level=info msg="Loading containers: done."
Jul 08 01:03:28 c7ks1 docker[11221]: time="2017-07-08T01:03:28.161632565+08:00" level=info msg="Daemon has completed initialization"
Jul 08 01:03:28 c7ks1 docker[11221]: time="2017-07-08T01:03:28.161664144+08:00" level=info msg="Docker daemon" commit=c3959b1 execdriver=native-0.2 graphdriver=de...sion=1.10.2
Jul 08 01:03:28 c7ks1 systemd[1]: Started Docker Application Container Engine.
Jul 08 01:03:28 c7ks1 docker[11221]: time="2017-07-08T01:03:28.172666300+08:00" level=info msg="API listen on /var/run/docker.sock"
Hint: Some lines were ellipsized, use -l to show in full.
[root@c7ks1 harbor]# ./install.sh

[Step 0]: checking installation environment ...

Note: docker version: 1.10.2

Note: docker-compose version: 1.8.0

[Step 1]: loading Harbor images ...


[Step 2]: preparing environment ...
generated and saved secret key
Generated configuration file: ./common/config/nginx/nginx.conf
Generated configuration file: ./common/config/ui/env
Generated configuration file: ./common/config/ui/app.conf
Generated configuration file: ./common/config/registry/config.yml
Generated configuration file: ./common/config/db/env
Generated configuration file: ./common/config/jobservice/env
Generated configuration file: ./common/config/jobservice/app.conf
Generated configuration file: ./common/config/ui/private_key.pem
Generated configuration file: ./common/config/registry/root.crt
The configuration files are ready, please use docker-compose to start the service.


[Step 3]: checking existing instance of Harbor ...


[Step 4]: starting Harbor ...
Creating network "harbor_default" with the default driver
Creating harbor-log
Creating harbor-ui
Creating registry
Creating harbor-db
Creating harbor-jobservice
Creating nginx

✔ ----Harbor has been installed and started successfully.----

Now you should be able to visit the admin portal at http://192.168.40.113.
For more details, please visit https://github.com/vmware/harbor .

安装OK未报错

[docker@c7ks1 harbor]$ docker images
REPOSITORY                 TAG                 IMAGE ID            CREATED             SIZE
vmware/harbor-log          0.5.0               8a0833f24c8f        7 months ago        190.5 MB
vmware/harbor-jobservice   0.5.0               f8d65542009e        7 months ago        169.4 MB
vmware/harbor-ui           0.5.0               587e09accc1b        7 months ago        233 MB
vmware/harbor-db           0.5.0               e4339a680042        7 months ago        326.8 MB
nginx                      1.11.5              05a60462f8ba        8 months ago        181.4 MB
registry                   2.5.0               c6c14b3960bd        11 months ago       33.28 MB
photon                     1.0                 e6e4e4a2ba1b        12 months ago       127.5 MB
[docker@c7ks1 harbor]$ docker ps
CONTAINER ID        IMAGE                            COMMAND                  CREATED             STATUS              PORTS                                      NAMES
2dc8e2d05e26        nginx:1.11.5                     "nginx -g 'daemon off"   5 minutes ago       Up 5 minutes        0.0.0.0:80->80/tcp, 0.0.0.0:443->443/tcp   nginx
a40c9cd65d6c        vmware/harbor-jobservice:0.5.0   "/harbor/harbor_jobse"   5 minutes ago       Up 5 minutes                                                   harbor-jobservice
8fc752162c21        vmware/harbor-db:0.5.0           "docker-entrypoint.sh"   5 minutes ago       Up 5 minutes        3306/tcp                                   harbor-db
14e834f0b6ed        library/registry:2.5.0           "/entrypoint.sh serve"   5 minutes ago       Up 5 minutes        5000/tcp                                   registry
5e8030b4c30a        vmware/harbor-ui:0.5.0           "/harbor/harbor_ui"      5 minutes ago       Up 5 minutes                                                   harbor-ui
5d212aa2a13b        vmware/harbor-log:0.5.0          "/bin/sh -c 'crond &&"   5 minutes ago       Up 5 minutes        0.0.0.0:1514->514/tcp                      harbor-log

各容器都启动了

访问图形界面OK

harbor安装问题处理_第1张图片

转载于:https://my.oschina.net/u/1762991/blog/1204555

你可能感兴趣的:(harbor安装问题处理)