I am running OneDev server via the docker container method, on which I have mounted the host docker socket. I am executing my job inside a custom container I build and released on dockerhub. I made some changes and released a new image ('latest' tag) but OneDev is still using the old image. I executed "docker pull ..." on the docker server host and now the job is using the up to date image. Shouldn't OneDev always fetch the latest docker image, at least for the 'latest' tag? Is there a way to achieve this?
Robin Shen commented 4 months ago
OneDev won't pull image automatically, for reasons of ensuring stable build. However it might be reasonable to always pull the image if latest tag is used. Converting this to be an improvment request.
Robin Shenchanged fields4 months ago
Name
Previous Value
Current Value
Type
Question
Improvement
Robin Shenchanged title4 months ago
Previous Value
Current Value
"Run In Container" jobs are not pulling latest image from dockerhub
An option to always pull latest image for docker related steps
I am running OneDev server via the docker container method, on which I have mounted the host docker socket. I am executing my job inside a custom container I build and released on dockerhub. I made some changes and released a new image ('latest' tag) but OneDev is still using the old image. I executed "docker pull ..." on the docker server host and now the job is using the up to date image. Shouldn't OneDev always fetch the latest docker image, at least for the 'latest' tag? Is there a way to achieve this?