阿里云同步gcr.io的镜像

这篇具有很好参考价值的文章主要介绍了阿里云同步gcr.io的镜像。希望对大家有所帮助。如果存在错误或未考虑完全的地方,请大家不吝赐教,您也可以点击"举报违法"按钮提交疑问。

一、注册GitHub账户

地址:GitHub: Where the world builds software · GitHub

二、在github中创建仓库

阿里云同步gcr.io的镜像

阿里云同步gcr.io的镜像 阿里云同步gcr.io的镜像

三、在仓库中创建文件夹,并创建dockerfile

阿里云同步gcr.io的镜像

阿里云同步gcr.io的镜像 注意:输入创建文件ingress-nginx-controller后在输入/,创建一个文件dockerfile

From k8s.gcr.io/ingress-nginx/controller:v1.1.1

阿里云同步gcr.io的镜像

阿里云同步gcr.io的镜像

四、注册阿里云账号并登录,打开控制台进入到容器镜像服务

阿里云同步gcr.io的镜像

阿里云同步gcr.io的镜像

五、创建命名空间

阿里云同步gcr.io的镜像

六、创建镜像仓库

阿里云同步gcr.io的镜像

七、关联刚刚注册的GitHub账号和仓库

注意:需要勾选海外机器构建

阿里云同步gcr.io的镜像

八、添加构建规则

上下文目录就是GitHub中创建的文件夹

Dockerfile路径就是文件夹中创建的文件

阿里云同步gcr.io的镜像

九、点击立即构建

阿里云同步gcr.io的镜像

十、查看日志是否构建成功

阿里云同步gcr.io的镜像文章来源地址https://www.toymoban.com/news/detail-496685.html

十一、测试拉取镜像

[root@ls_rflrhksm ~]# docker login --username=lixin0608 registry.cn-hangzhou.aliyuncs.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
[root@k8s-master01 ingress-nginx]# docker pull registry.cn-hangzhou.aliyuncs.com/lixin-c/controller:v1.1.2
v1.1.2: Pulling from lixin-c/controller
a0d0a0d46f8b: Pull complete 
3aae86482564: Pull complete 
c0d03781abb3: Pull complete 
0297e2ef8f7f: Pull complete 
866a68ce3c13: Pull complete 
1c2a7ca65b54: Pull complete 
41fd2de30e46: Pull complete 
637f10464e4d: Pull complete 
998064a16da4: Pull complete 
e63d23220e8c: Pull complete 
8128610547fb: Pull complete 
ae07a1a7f038: Pull complete 
ceb23c4cb607: Pull complete 
Digest: sha256:628cc0d4023eaf9bd7de0cab60a6f9aeb447d3aaa2bb78670604baae94879cef
Status: Downloaded newer image for registry.cn-hangzhou.aliyuncs.com/lixin-c/controller:v1.1.2
registry.cn-hangzhou.aliyuncs.com/lixin-c/controller:v1.1.2

[root@k8s-master01 ingress-nginx]# docker images | grep controller
registry.cn-hangzhou.aliyuncs.com/lixin-c/controller          v1.1.2    7e5c1cecb086   4 months ago    286MB

到了这里,关于阿里云同步gcr.io的镜像的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处: 如若内容造成侵权/违法违规/事实不符,请点击违法举报进行投诉反馈,一经查实,立即删除!

领支付宝红包 赞助服务器费用

相关文章

  • 阿里云开源容器镜像同步工具-image-syncer,再也不怕跨环境同步容器镜像了

    image-syncer是一个容器镜像同步工具,可用来进行多对多的镜像仓库同步,支持目前绝大多数主流的 docker 镜像仓库服务 请根据使用的操作系统选择对应的二进制文件进行下载,对下载的文件进行解压,解压后可看到可执行文件image-syncer 3.1 获取config.yaml配置文件 config.yaml 在二进

    2024年02月01日
    浏览(32)
  • Maven阿里云镜像地址

    目录 一、阿里云镜像地址官网:  二、具体操作 三、学习maven的课程推荐 阿里巴巴开源镜像站-OPSX镜像站-阿里云开发者社区  Maven阿里云最新镜像地址:https://maven.aliyun.com/repository/public 1、进入maven里的settings.xml文件 2、在mirror/mirrors这块的里面的最下面增加 mirror         

    2024年02月08日
    浏览(35)
  • 【阿里云镜像加速地址】

    登录地址:https://account.aliyun.com/login/login.htm 如果没有账号就注册一个 复制镜像加速地址,通过修改daemon配置文件/etc/docker/daemon.json来使用加速器

    2024年02月14日
    浏览(29)
  • docker配置阿里云镜像加速地址

    docker配置下载镜像加速 1.登录阿里云(http://dev.aliyun.com) 2.在控制台搜索容器镜像服务 3.找到镜像加速器 4、配置阿里云镜像加速

    2024年02月12日
    浏览(33)
  • nodejs 下载地址 阿里云开源镜像站

    nodejs 下载地址 阿里云开源镜像站 https://mirrors.aliyun.com/nodejs-release/ 我们下期见,拜拜!

    2024年02月16日
    浏览(34)
  • 为虚拟机上的docker使用阿里云镜像地址

    一、获取镜像地址。 登录阿里云网址,获取镜像地址。比如我的镜像地址是https://q44tmizw.mirror.aliyuncs.com。阿里云网址是https://cr.console.aliyun.com/cn-hangzhou/instances/mirrors 二、修改docker配置文件 1、使用命令  cd /etc/docker,使用命令ls可以看到这里有3个文件,使用命令vim daemon.json 来修

    2024年02月03日
    浏览(26)
  • CentOS5678 repo源 地址 阿里云开源镜像站

    CentOS5678 repo 地址 阿里云开源镜像站 https://mirrors.aliyun.com/repo/ CentOS5678 repo 地址 腾讯云开源镜像站 http://mirrors.cloud.tencent.com/repo/ CentOS-5.repo https://mirrors.aliyun.com/repo/Centos-5.repo CentOS-6.repo https://mirrors.aliyun.com/repo/Centos-6.repo CentOS-7.repo https://mirrors.aliyun.com/repo/Centos-7.repo CentOS-8.rep

    2024年02月17日
    浏览(39)
  • 阿里云开源 image-syncer 工具,容器镜像迁移同步的终极利器

    由于阿里云上的容器服务 ACK 在使用成本、运维成本、方便性、长期稳定性上大大超过公司自建自维护 Kubernets 集群,有不少公司纷纷想把之前自己维护 Kubernetes 负载迁移到阿里云 ACK 服务上。在迁移过程中,往往会碰到一个不大不小的坑:那就是怎么把已有的容器镜像平滑的

    2024年02月21日
    浏览(28)
  • Ubuntu1404 apt source源 地址 阿里云开源镜像站

    阿里云 Ubuntu 14.04 apt source 源 地址 https://mirrors.aliyun.com/repo/ubuntu1404-lts.list ubuntu1404-lts.list 我们下期见,拜拜!

    2024年02月17日
    浏览(28)
  • failed to get sandbox image “k8s.gcr.io/pause:3.6“: failed to pull image “k8s.gcr.io/pause:3.6“

    从日志能够看到k8s核心服务的pod创建失败,因为获取pause镜像失败,总是从k8s.gcr.io下载。 经过确认,k8s 1.26中启用了CRI sandbox(pause) image的配置支持。 之前通过kubeadm init –image-repository设置的镜像地址,不再会传递给cri运行时去下载pause镜像 而是需要在cri运行时的配置文件中设

    2024年02月16日
    浏览(40)

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

博客赞助

微信扫一扫打赏

请作者喝杯咖啡吧~博客赞助

支付宝扫一扫领取红包,优惠每天领

二维码1

领取红包

二维码2

领红包