小工具知识网

当前位置: 首页 > 行业知识 > 【镜像转存】利用交互式学习平台killercoda转存K8S镜像至Docker私人仓库

行业知识

【镜像转存】利用交互式学习平台killercoda转存K8S镜像至Docker私人仓库

2026-11-30 15:52:00 来源:互联网转载

文章目录

    • 1. 镜像转存需求
    • 2. 注册并登陆 killercoda URL
    • 3. 打开playground
    • 4. 在线拉取K8S镜像并打上标签
    • 5. 推送K8S镜像到Docker私有仓库
    • 6. index.php/tags-41973.html" >���陆Docker私有仓库查看

      1. 镜像转存需求

      因K8S镜像在不开代理的情况下,拉取超时、下载缓慢,导致镜像拉取不下来。现在通过在线交互学习平台,进行拉取,后转存到docker私有仓库,再进行拉取,可以解决镜像拉取、下载失败等问题。

      2. 注册并登陆 killercoda URL

      注册URL:Killercoda Interactive Environments

      • 选择登陆方式
        • 输入邮箱地址
          • 前往邮件后台,查收邮件。
            • 点击click here to login。
              • 授权等待中…
                • 注册登陆完成。

                  3. 打开playground

                  4. 在线拉取K8S镜像并打上标签

                  controlplane $ docker pull k8s.gcr.io/autoscaling/vpa-admission-controller:0.13.00.13.0: Pulling from autoscaling/vpa-admission-controllerfc251a6e7981: Pull complete da7e855a5a9b: Pull complete Digest: sha256:c857dcbfc071bcdd25bd9835955eda2c05e8846f638d0556475e4b40f2fbd294Status: Downloaded newer image for k8s.gcr.io/autoscaling/vpa-admission-controller:0.13.0k8s.gcr.io/autoscaling/vpa-admission-controller:0.13.0controlplane $ docker imagesREPOSITORY                                        TAG       IMAGE ID       CREATED         SIZEk8s.gcr.io/autoscaling/vpa-admission-controller   0.13.0    b285911b0ebb   13 months ago   53.9MBxybdiy/vpa-admission-controller                   0.12.0    f4325d883003   18 months ago   53.9MBk8s.gcr.io/autoscaling/vpa-admission-controller   0.12.0    f4325d883003   18 months ago   53.9MBcontrolplane $ docker tag k8s.gcr.io/autoscaling/vpa-admission-controller:0.13.0 xybdiy/vpa-admission-controller:0.13.0controlplane $ controlplane $ docker imagesREPOSITORY                                        TAG       IMAGE ID       CREATED         SIZExybdiy/vpa-admission-controller                   0.13.0    b285911b0ebb   13 months ago   53.9MBk8s.gcr.io/autoscaling/vpa-admission-controller   0.13.0    b285911b0ebb   13 months ago   53.9MBk8s.gcr.io/autoscaling/vpa-admission-controller   0.12.0    f4325d883003   18 months ago   53.9MBxybdiy/vpa-admission-controller                   0.12.0    f4325d883003   18 months ago   53.9MBcontrolplane $ 

                  5. 推送K8S镜像到Docker私有仓库

                  controlplane $ docker loginAuthenticating with existing credentials...WARNING! Your password will be stored unencrypted in /root/.docker/config.json.Configure a credential helper to remove this warning. Seehttps://docs.docker.com/engine/reference/commandline/login/#credentials-storeLogin Succeededcontrolplane $ docker push xybdiy/vpa-admission-controller:0.13.0The push refers to repository [docker.io/xybdiy/vpa-admission-controller]3fe018b48e98: Pushed cb60fb9b862c: Pushed 0.13.0: digest: sha256:28b0ca918c58debf94334c56404223490c475daa2abb2d91bdfc15533ca8df5e size: 739

                  6. 登陆Docker私有仓库查看

                  URL:https://hub.docker.com/

上一篇:福鼎网络公司,领先的专业服务提供商

下一篇:年轻母亲的真实年龄揭秘,探寻青春背后的故事!