当前位置: 首页 > news >正文

汽车4s网站设计销售管理

汽车4s网站设计,销售管理,免费制作企业宣传册制作工具,惠州做网站首选惠州邦一、介绍 MCR(Miscrosoft Container Registry) 加速器,助你在中国大陆急速下载 netcore 相关的 docker 镜像。二、解决办法。     1、如何使用       至少三种方法进行加速:         使用 docker-mcr (推荐)  …

一、介绍

    MCR(Miscrosoft Container Registry) 加速器,助你在中国大陆急速下载 netcore 相关的 docker 镜像。

二、解决办法。

    1、如何使用

      至少三种方法进行加速:
        使用 docker-mcr (推荐)
        拉取国内服务器上的镜像
        使用 DockerHub 加速器

      注意,无论采用什么方式,请先确保本地的 docker 已经正常可用。

    2、使用 docker-mcr (推荐)

      docker-mcr 是一个 dotnet core global tool,简单几步,便可以进行安装和使用。

      进入 dotnet 页面,下载并安装 netcore 3.1 SDK 或者 Net 5.0,如果没有安装 SDK,是无法使用 dotnet 命令的。

      



      安装完毕后打开控制台运行以下命令:

#dotnet tool install newbe.mcrmirror -g

     如果已经安装,会提示已经安装。
      


      现在,假如需要拉取 mcr.microsoft.com/dotnet/aspnet:3.1-buster-slim ,则运行以下命令:#docker-mcr -i mcr.microsoft.com/dotnet/aspnet:3.1-buster-slim
      


      等待完成之后,便可以在本地看到已经拉取完毕的镜像。
      


      您可以运行 docker-mcr --help 来查看更多的参数配置方式。

      命令:#docker-mcr --help
      



      如果您曾经安装过 newbe.mcrmirror,您需要使用 dotnet tool update newbe.mcrmirror -g命令来进行升级,确保最佳的体验。

      命令:#dotnet tool update newbe.mcrmirror -g
      


 

    3、拉取国内服务器上的镜像

      加速的本质是因为我将镜像推送到了国内的服务器,目前在以下服务器均存在镜像:

            阿里云:registry.cn-hangzhou.aliyuncs.com/newbe36524
            腾讯云:ccr.ccs.tencentyun.com/mcr_newbe36524

      以下以阿里云为例进行说明,假设需要拉取 【aspnet:3.1-buster-slim】 和【sdk:3.1-buster】

      则拼接上面的前缀,则得到地址【registry.cn-hangzhou.aliyuncs.com/newbe36524/aspnet:3.1-buster-slim】 和【registry.cn-hangzhou.aliyuncs.com/newbe36524/sdk:3.1-buster】 。

      然后,为了不修改默认的 Dockerfile 您可以运行以下命令:
 

3.1 版本
#docker pull registry.cn-hangzhou.aliyuncs.com/newbe36524/aspnet:3.1-buster-slim
#docker tag registry.cn-hangzhou.aliyuncs.com/newbe36524/aspnet:3.1-buster-slim mcr.microsoft.com/dotnet/core/aspnet:3.1-buster-slim5         
#docker pull registry.cn-hangzhou.aliyuncs.com/newbe36524/sdk:3.1-buster
#docker tag registry.cn-hangzhou.aliyuncs.com/newbe36524/sdk:3.1-buster mcr.microsoft.com/dotnet/core/sdk:3.1-buster

ASP.NET 3.1 镜像
       


        



ASP.NET SDK 3.1 镜像
        

       

这样你就成功的在本地得到了 【mcr.microsoft.com/dotnet/core/aspnet:3.1-buster-slim】和【mcr.microsoft.com/dotnet/core/sdk:3.1-buster】 镜像。
       当然,你也可以直接把 【registry.cn-hangzhou.aliyuncs.com/newbe36524/aspnet:3.1-buster-slim】和【registry.cn-hangzhou.aliyuncs.com/newbe36524/sdk:3.1-buster】 写入到你的 Docker file 中。

5.0 版本#docker pull registry.cn-hangzhou.aliyuncs.com/newbe36524/aspnet:5.0-buster-slim
#docker tag registry.cn-hangzhou.aliyuncs.com/newbe36524/aspnet:5.0-buster-slim mcr.microsoft.com/dotnet/core/aspnet:5.0-buster-slim
#docker pull registry.cn-hangzhou.aliyuncs.com/newbe36524/sdk:5.0-buster-slim
#docker tag registry.cn-hangzhou.aliyuncs.com/newbe36524/sdk:5.0-buster-slim mcr.microsoft.com/dotnet/core/sdk:5.0-buster-slim

ASPNET SDK 5.0 镜像        
        

       


        

        
      
       这样你就成功的在本地得到了【mcr.microsoft.com/dotnet/core/aspnet:5.0-buster-slim】 和 【mcr.microsoft.com/dotnet/core/sdk:5.0-buster-slim】 镜像。
       当然,你也可以直接把 【registry.cn-hangzhou.aliyuncs.com/newbe36524/aspnet:5.0-buster-slim】 和 【registry.cn-hangzhou.aliyuncs.com/newbe36524/sdk:5.0-buster-slim】写入到你的 Dockerfile 中。


    4、使用 DockerHub 加速器(这个开始有点慢)

      我也将镜像推送到了 DockerHub ,所以正常来说,在中国大陆使用 DockerHub 加速器也可以达到加速的效果。

      规则,mcr.microsoft.com/dotnet/cre/{name}:{tag} -> newbe36524/{name}:{tag}

      ASP.NET 3.1 镜像

        【1】、命令:#docker pull newbe36524/aspnet:3.1-buster-slim

            



        【2】、命令:#docker tag newbe36524/aspnet:3.1-buster-slim mcr.microsoft.com/dotnet/core/aspnet:3.1-buster-slim

            



        【3】、命令:#docker images

            


 

复制代码

1       #docker pull newbe36524/aspnet:3.1-buster-slim
2       #docker tag newbe36524/aspnet:3.1-buster-slim mcr.microsoft.com/dotnet/core/aspnet:3.1-buster-slim


 3       #docker pull newbe36524/sdk:3.1-buster
  4           #docker tag newbe36524/sdk:3.1-buster mcr.microsoft.com/dotnet/core/sdk:3.1-buster

复制代码


      ASP.NET 3.1 镜像
        
        【1】、命令:#docker pull newbe36524/sdk:3.1-buster
        
            



        【2】、命令:#docker tag newbe36524/sdk:3.1-buster mcr.microsoft.com/dotnet/core/sdk:3.1-buster
        
            



        【3】、命令:#docker images

            




      这样你就得到了【mcr.microsoft.com/dotnet/core/aspnet:3.1-buster-slim】和【mcr.microsoft.com/dotnet/core/sdk:3.1-buster】 镜像。当然,你也可以直接把 【newbe36524/aspnet:3.1-buster-slim】和【newbe36524/sdk:3.1-buster】 写入到你的 Dockerfile 中。在此之前,请确保你正确配置了本地的加速器。

【参考文章】解决 Docker 下载 mcr.microsoft.com 镜像慢的办法

http://www.mmbaike.com/news/106645.html

相关文章:

  • 小鱼儿外贸网站seo推广视频隐迅推专业
  • html网页制作app下载汕头seo网站推广
  • 核工业南京建设集团网站免费网站外链推广
  • 校园网站建设工作总结惠州疫情最新消息
  • 广州网站建设哪里买免费下载百度到桌面
  • 做3dh春丽网站叫什么陕西百度推广的代理商
  • 网站开发工程师所需要的经验seo外推软件
  • 网上暴利赚钱项目郑州企业网站seo
  • 网站建设 排名搜索指数在线查询
  • 外贸推广网站建设云和数据培训机构怎么样
  • 网络营销外包推广定制公司网站排名优化培训
  • dede网站打开慢网络推广工作内容
  • 美的技术网站百度爱采购服务商查询
  • 上海高端模板建站培训网站有哪些
  • 什么网站可以做miR的差异表达图今天的国际新闻
  • 做微信电影网站南京网站制作公司
  • 高仿做的好点的网站深圳seo培训
  • 西宁网站搭建企业热搜榜排名前十
  • 黄埭做网站网络优化公司
  • 网站建设论文设计b2b平台运营模式
  • 网络架构需求深圳seo优化排名优化
  • 用ipv6地址做网站访问谷歌浏览器app下载
  • 福州网站建设市场厦门百度广告
  • 交互做的比较好的网站婚恋网站排名
  • 白河网站制作中国最大的企业培训公司
  • 佛山专业的做网站的店铺100个关键词
  • qq空间怎么做网站怎么样建网站
  • 做商城网站需要备案吗外贸推广平台
  • 惠州市住房和城乡建设厅网站网址大全浏览器
  • 做设计最好的参考网站搜索优化