Git Product home page Git Product logo

image2's Introduction

image2

Dcoker 镜像工具:国外镜像转换;编译 Dockerfile

镜像转换

国内不可访问镜像通过 GitHub Action 转换。 我需要做的是:

  1. 创建 release;
  2. 填写一个新的 Tag 号,例如 v0.0.1;(Tag 号没有明确意义,只为创建 release 触发 GitHub Action)
  3. 填写完整的外网镜像名称, 例如 k8s.gcr.io/kube-apiserver:v1.24.0

须知:最后编译出来的镜像地址只会保留镜像名称,不会保留域名或命名空间。
上例转换出来的镜像是 wutongpaas/kube-apiserver:v1.24.0swr.cn-southwest-2.myhuaweicloud.com/wutong/kube-apiserver:v1.24.0

编译镜像

编写本仓库下的 Dockerfile,提交之后使用 GitHub Action 编译镜像。 我需要做的是:

  1. 修改仓库的 Dockerfile 文件,写入新的内容;
  2. 提交,提交信息为编译的镜像名称。(提交信息为编译的镜像名称,切记!) 须知:
  • 如果提交信息为 alpine,那么最后编译出来的镜像地址是 wutongpaas/alpineswr.cn-southwest-2.myhuaweicloud.com/wutong/alpine
  • 提交信息可以附带tag,例如:alpine:latest

image2's People

Contributors

poneding avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.