[root@localhost Deploy]# docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
9704f42b05d5 deploy_jobservice "/go/bin/harbor_jobse" 4 minutes ago Up 4 minutes deploy_jobservice_1
0f8ff9b099d2 library/nginx:1.9 "nginx -g 'daemon off" 4 minutes ago Up 4 minutes 0.0.0.0:80->80/tcp, 0.0.0.0:443->443/tcp deploy_proxy_1
6b0159939874 deploy_ui "/go/bin/harbor_ui" 4 minutes ago Up 4 minutes 80/tcp deploy_ui_1
6f2298da0f67 deploy_mysql "docker-entrypoint.sh" 4 minutes ago Up 4 minutes 3306/tcp deploy_mysql_1
2dbca506e1ea library/registry:2.4.0 "/bin/registry serve" 4 minutes ago Up 4 minutes 5000/tcp, 0.0.0.0:5001->5001/tcp deploy_registry_1
fc5b1a201c72 deploy_log "/bin/sh -c 'cron &&" 4 minutes ago Up 4 minutes 0.0.0.0:1514->514/tcp deploy_log_1
完成以后,使用 访问 Harbor
使用 帐号 admin, 密码为 配置文件中 harbor_admin_password = Harbor12345 的密码 登陆
至此, Harbor 已经搭建完成,具体在 WEB UI 下面操作也是非常的简单,只有几个选项。
docker 需要上传 push 镜像,需要在 docker 中配置 --insecure-registry userIP 或者在nginx 中配置 https
配置完毕以后,重启 docker
使用 docker login userIP 登陆 Harbor
[root@swarm-manager ~]#docker login 10.6.0.192 Username (admin): admin Password: Login Succeeded
查看 本地 images