#1713  An option to always pull latest image for docker related steps
Open
kdop opened 4 months ago

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 Shen changed fields 4 months ago
Name Previous Value Current Value
Type
Question
Improvement
Robin Shen changed title 4 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
kdop commented 4 months ago

Thanks, an option would be perfect!

issue 1 of 1
Type
Improvement
Priority
Normal
Assignee
Labels
No labels
Issue Votes (0)
Watchers (3)
Reference
onedev/server#1713
Please wait...
Page is in error, reload to recover