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.8.5.3.4. 强制 Pull
默认情况下,在设置构建 pod 时,构建控制器会检查构建配置中指定的镜像是否本地可用。如果是这样,则使用该镜像。但是,要覆盖本地镜像并从镜像流指向的 registry 中刷新它,请创建一个 BuildConfig
,将 forcePull
标志设为 true :
strategy: customStrategy: forcePull: true
strategy:
customStrategy:
forcePull: true
- 1
- 此标志会导致本地构建器镜像被忽略,并从镜像流指向的 registry 中拉取新版本。将
forcePull
设置为 false 将导致默认行为是遵守本地存储的镜像。