Harbor-企业级Registry服务器使用(图解)
1、登录本地Harbor服务首页
2、用户管理,添加用户管理容器项目
三、用户登录、镜像推送
[email protected]:~# docker login 127.0.0.1:8999 Username (dev): admin Password: Login Succeeded
可以查看推送命令
[email protected]:~# docker tag python:alpine 127.0.0.1:8999/my-images/python:alpine [email protected]:~# docker tag app:v3 127.0.0.1:8999/my-images/app:v3
[email protected]:~# docker push 127.0.0.1:8999/my-images/python:alpine
[email protected]:~# docker push 127.0.0.1:8999/my-images/app:v3
查看上传的镜像
4、客户端下载镜像测试
[email protected]:~# docker login 39.xx.xx.xx:8999 Username: admin Password: Error response from daemon: Get https://39.xx.xx.xx:8999/v1/users/: http: server gave HTTP response to HTTPS client
解决办法:
[email protected]:~# echo "{ "insecure-registries":["xx.xx.xx.xx:8999"] }" > /etc/docker/daemon.json
[email protected]:~# cat /etc/docker/daemon.json
{ "insecure-registries": ["39.104.63.208:8999"] }
[email protected]:~# systemctl daemon-reload
[email protected]:~# systemctl restart docker
[email protected]:~# docker pull 39.xx.xx.xx:8999/my-images/app:v3