Harbor容器仓库的镜像上传
- 一、登录harbor网页
- 二、docker客户端配置
- 1.设置信任harbor服务器
- 2.重启客户端的容器服务
- 三、客户端登录harbor
- 四、上传镜像
- 1.将本地镜像打上标签
- 2.上传镜像到harbor服务器
- 五、harbor网页测试
一、登录harbor网页
二、docker客户端配置
1.设置信任harbor服务器
{
"registry-mirrors": [""],
"insecure-registries": ["192.168.3.250:8090"]
}
~
2.重启客户端的容器服务
[root@docker ~]
三、客户端登录harbor
[root@docker ~]
Username: admin
Password:
WARNING! Your password will be stored unencrypted in /root/.docker/.
Configure a credential helper to remove this warning. See
/engine/reference/commandline/login/
Login Succeeded
四、上传镜像
1.将本地镜像打上标签
[root@docker ~]
2.上传镜像到harbor服务器
[root@docker ~]
The push refers to repository [192.168.3.250:8090/library/nginx]
2bed47a66c07: Pushed
82caad489ad7: Pushed
d3e1dca44e82: Pushed
c9fcd9c6ced8: Pushed
0664b7821b60: Pushed
9321ff862abb: Pushed
5.0: digest: sha256:4424e31f2c366108433ecca7890ad527b243361577180dfd9a5bb36e828abf47 size: 1570
五、harbor网页测试