首页
学习
活动
专区
工具
TVP
发布

TKE操作指南 - 将Docker基础镜像push至腾讯云仓库(四)

根据TKE操作指南 - 制作Nginx和Php Docker基础镜像(二),现在我们将镜像push至腾讯云仓库

1.push至腾讯云镜像仓库

# sudo docker login --username=100010904044 ccr.ccs.tencentyun.com //登录远程仓库,输入密码

Nginx镜像push:

# sudo docker tag test:v1 ccr.ccs.tencentyun.com/liangfeng/test:nginxV1 //打上远程标签

# sudo docker push ccr.ccs.tencentyun.com/liangfeng/test:nginxv1 //进行push推送至腾讯云镜像仓库

PHP镜像push:

# docker tag test:v2 ccr.ccs.tencentyun.com/liangfeng/test:phpV1

# docker push ccr.ccs.tencentyun.com/liangfeng/test:phpV1

2.验证push成功

我们push的地址是ccr.ccs.tencentyun.com/liangfeng/test:nginxV1,所以ccr.ccs.tencentyun.com/liangfeng/test是镜像地址,test是名称,nginxV1是版本。

验证步骤:在我的镜像中,可以看到镜像地址为ccr.ccs.tencentyun.com/liangfeng/test,之后点击test仓库,可以看到nginxV1和phpV1的镜像版本,说明push成功。

至此,我们已将nginx和php两个docker基础镜像push至腾讯云仓库。

Nginx基础镜像地址:ccr.ccs.tencentyun.com/liangfeng/test:nginxV1

PHP基础镜像地址:ccr.ccs.tencentyun.com/liangfeng/test:phpV1

下一篇
举报
领券