Docekr private warehouse push

Examples are as follows
log in
docker login -u admin -p Harbor12345 IP地址:9090
账户密码信息是默认的
可在配置文件中查看
cat harbor.yam(在安装harbor的安装目录)
Mirroring to play tag

push the rules, here we must remember well

docker tag 镜像:标签 IP地址:端口号/项目目录/镜像:标签
比如: 我的 docker tag nginx:latest 127.0.0.1:9090/library/nginx:latest
tag 命名方式仅供示例所示。
10.0.10.20:9090:   私有厂库的地址
library:项目目录名
libary/nginx :   镜像名
latest:版本号

Pushed to private warehouses, and consistent labeling

docker push 127.0.0.1:9090/libary/nginx:latest
Push to see if success
需要登录到web管理界面 
比如我的 127.0.0.1:9090 
即可弹出页面,登录看项目即可。
Follow-up

How accurate image uploaded to the project directory to
docker push is a certain matching rules
first: the new project name in the web administration interface.
New project, you can edit the name.
Second: the mirror to re-tagging.

docker tag 镜像名:标签  127.0.0.1:9090/项目名/镜像名:标签

And finally: upload is the same

docker push 127.0.0.1:9090/项目名/镜像名:标签

If wrong, welcomed the guidance, other functions, you can get to know the use of the process, thank you.

Guess you like

Origin www.cnblogs.com/lph970417/p/12121011.html
Recommended