This documentation is for a release that is no longer maintained
See documentation for the latest supported version 3 or the latest supported version 4.3.5. odo CLI 参考指南
3.5.1. odo build-images 复制链接链接已复制到粘贴板!
复制链接链接已复制到粘贴板!
odo
可根据 Dockerfile 构建容器镜像,并将这些镜像推送到 registry。
在运行 odo build-images
命令时,odo
会使用 镜像
类型搜索 devfile.yaml
中的所有组件,例如:
对于每个镜像组件,odo 执行 podman
或 docker
(按此顺序找到的第一个),以使用指定的 Dockerfile、构建上下文和参数构建镜像。
如果将 --push
标志传递给命令,则镜像会在构建后推送到其 registry。