栏目头部广告

UCloud UHub容器镜像仓库使用教程

一、UCloud UHub容器镜像仓库介绍

公共镜像库 UHub 是一种UCloud推出的免费的公共镜像库服务。每个项目可以创建一个镜像仓库。UHub可以让用户自由创建和管理镜像库。UHub镜像库为跨地域架构,在一个地域push的镜像可被其它地域访问。

二、UHub使用教程

2.1 登录镜像仓库

[root@10-27-0-224 ~]# docker login uhub.service.ucloud.cn -u 1938418737@qq.com
Password: 
WARNING! Your password will be stored unencrypted in /root/.docker/config.json.
Configure a credential helper to remove this warning. See
https://docs.docker.com/engine/reference/commandline/login/#credentials-store

Login Succeeded

【注】登录用户名为UCloud平台注册的邮箱,密码为控制台密码。

2.2 Push镜像

(1)本地对镜像打一个tag

[root@10-27-0-224 ~]# docker tag linuxserver/smokeping:latest uhub.service.ucloud.cn/starcto/smokeping:2.7.3
[root@10-27-0-224 ~]# docker images
REPOSITORY                                      TAG       IMAGE ID       CREATED         SIZE
uhub.service.ucloud.cn/starcto/smokeping        2.7.3     e8d1b7940f60   6 days ago      221MB
linuxserver/smokeping                           latest    e8d1b7940f60   6 days ago      221MB

(2)提交镜像到仓库

[root@10-27-0-224 ~]# docker push uhub.service.ucloud.cn/starcto/smokeping:2.7.3 
The push refers to repository [uhub.service.ucloud.cn/starcto/smokeping]
4bf90769bfe4: Pushed 
ce4c7f7ee838: Pushed 
3273644c22d8: Pushed 
d6b45486c69c: Pushed 
a3d3f610b2ec: Pushed 
5e23a92519f7: Pushed 
909b6ed70bd7: Pushed 
2523e50156e3: Pushed 
a337524dab4e: Pushed 
2.7.3: digest: sha256:f67bc849ae8afefb9c9d6e0a5433499f82da4232a36e78f2bf6994cb9a1bcef4 size: 2206

2.3 Pull镜像

[root@ansible ~]# docker pull uhub.service.ucloud.cn/starcto/smokeping:2.7.3
Trying to pull repository uhub.service.ucloud.cn/starcto/smokeping ... 
2.7.3: Pulling from uhub.service.ucloud.cn/starcto/smokeping
90684c01fe42: Pull complete 
7510b96c42e7: Pull complete 
c427e8ef545d: Pull complete 
9e5b0c6e9af5: Pull complete 
53d3600ba0c9: Pull complete 
6728e66bb98f: Pull complete 
6302d0960823: Pull complete 
1aea5c1e1389: Pull complete 
e27cf7b4fcc8: Pull complete 
Digest: sha256:f67bc849ae8afefb9c9d6e0a5433499f82da4232a36e78f2bf6994cb9a1bcef4
Status: Downloaded newer image for uhub.service.ucloud.cn/starcto/smokeping:2.7.3

2.4 控制台仓库列表展示

UCloud UHub容器镜像仓库使用教程(图1)

作者:UStarGao
链接:https://www.starcto.com/docker/258.html
来源:STARCTO
著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处

UCloud云平台推荐


UCloud新用户专属注册连接

UCloud CDN超值特惠专场

UCloud全球云主机(UHost/VPS)大促页面

UCloud快杰云主机大促页面

加载中~
文章详情页广告

随便看看

底部广告
`