docker images上传到阿里云私人仓库

 

登录私人仓库
[root@master soft]# docker login --username=test@163.com registry.cn-shenzhen.aliyuncs.com ##登录阿里云个人仓库,需要输入登录密码
[root@master soft]# docker load -i dashboard.tar

 

查看镜像
[root@master soft]# docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
kubernetesui/dashboard v2.7.0 07655ddf2eeb 23 months ago 246MB

 

镜像打标签
[root@master soft]# docker tag 07655ddf2eeb registry.cn-shenzhen.aliyuncs.com/hxlkubernetesui/dashboard:v2.7.0
[root@master soft]# docker push registry.cn-shenzhen.aliyuncs.com/hxlkubernetesui/dashboard:v2.7.0

 上传到阿里云私有镜像后记得修改权限,选择公开,否则无法pull.

 

 

posted @ 2024-08-26 09:30  slnngk  阅读(37)  评论(0编辑  收藏  举报