kaniko --customPlatform参数:支持不同平台的镜像构建(如:arm等)

网友投稿 889 2022-11-12

kaniko --customPlatform参数:支持不同平台的镜像构建(如:arm等)

kaniko --customPlatform参数:支持不同平台的镜像构建(如:arm等)

​​--customPlatform​​​ Allows to build with another default platform than the host, similarly to ​​docker build --platform xxx​​ the value has to be on the form ​​--customPlatform=linux/arm​​, with acceptable values listed here: ​​GOOS/GOARCH​​.

It’s also possible specifying CPU variants adding it as a third parameter (like​​ --customPlatform=linux/arm/v5​​). Currently CPU variants are only known to be used for the ARM architecture as listed here: GOARM

The resulting images cannot provide any metadata about CPU variant due to a limitation of the OCI-image specification.

This is not virtualization and cannot help to build an architecture not natively supported by the build host. This is used to build i386 on an amd64 Host for example, or arm32 on an arm64 host.

参考链接:​​​https://github.com/GoogleContainerTools/kaniko#–tarpath​​

版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。

上一篇:Aha!设计模式(7)-抽象工厂(6)
下一篇:基于nexus3搭建docker镜像仓库(registry mirror)
相关文章

 发表评论

暂时没有评论,来抢沙发吧~