美文网首页
上传Docker镜像到阿里云

上传Docker镜像到阿里云

作者: 伊凡的一天 | 来源:发表于2018-01-14 15:00 被阅读713次
    1. 配置阿里云的镜像加速器:https://cr.console.aliyun.com/#/accelerator

    2. 命令行登录到阿里云的doker仓库,--username为阿里云的用户名

    docker login --username=cheergoivan registry.cn-hangzhou.aliyuncs.com
    
    1. 为本地镜像添加tag
    docker tag f4ec85e8298f registry.cn-hangzhou.aliyuncs.com/cheergoivan/mynginx:0.1
    
    1. push到docker仓库
    docker push registry.cn-hangzhou.aliyuncs.com/cheergoivan/mynginx:0.1
    
    1. 登录阿里云查看已上传的镜像列表:https://cr.console.aliyun.com/#/imageList

    相关文章

      网友评论

          本文标题:上传Docker镜像到阿里云

          本文链接:https://www.haomeiwen.com/subject/tkvkoxtx.html