When specifying a container in a resource, (e.g. resources.containers.container) there is a localImage option to use locally cached images rather than pulling from the repository (we are using self-hosted agents, so we pull the images that we need locally when building the agent).
However, we are using a lot of nested templates in our setup, so we define the container directly in the job (e.g. using a jobs.job.container: image definition).
This definition does not have all of the options from the resources.containers.container definition, and in particular the localImage option.
Would it be possible to add the ability to specify the localImage option in job container objects?
Note that trying to specify localImage for a jobs.job.container results in the following error:
Describe your feature request here
When specifying a container in a resource, (e.g. resources.containers.container) there is a
localImage
option to use locally cached images rather than pulling from the repository (we are using self-hosted agents, so we pull the images that we need locally when building the agent).However, we are using a lot of nested templates in our setup, so we define the container directly in the job (e.g. using a jobs.job.container: image definition).
This definition does not have all of the options from the resources.containers.container definition, and in particular the
localImage
option.Would it be possible to add the ability to specify the
localImage
option in job container objects?Note that trying to specify
localImage
for a jobs.job.container results in the following error: