rebuild image --no-cache #9499
Replies: 20 comments 5 replies
-
Any news on this? This is a quite annoying problem. |
Beta Was this translation helpful? Give feedback.
-
Any news on this? |
Beta Was this translation helpful? Give feedback.
-
it's badlly needed. I need it to make devops become easy |
Beta Was this translation helpful? Give feedback.
-
an alternative way: |
Beta Was this translation helpful? Give feedback.
-
The problem with this method is you can not pass ARGs in portainer either as its currently not a supported feature, so once the ARG is set, if it never changes its still cached. Honestly it is a little concerning that no one from the dev team has even bothered to jump in with their thoughts in over 4 years. Not even a simple "hey guys, thanks for the request. Unfortunately our plate is pretty full but we will try to get it on the road map in the future" or some sort of explanation as to why its not feasible. The ability to pass ARGs and the ability to disable image caching are pretty fundamental components of docker, and without them portainer really loses potential in the enterprise market. Yes ill run it in my homelab because it works fine for really simple tasks, but I know that I can never buy the enterprise license and use it for my clients like this. |
Beta Was this translation helpful? Give feedback.
-
Mega-bump, having an option to rebuild without the cache would really help my CI/CD flow. |
Beta Was this translation helpful? Give feedback.
-
Rebuilding on updates was dealt with last year for Docker Compose (#6288) but getting regular Docker to rebuild was skipped. You can get this to work in Compose but not the plain Docker build UI... funny. Anyway, since this has been moved to a Discussion (despite their docs on Feature Requests), none of the reactions in the issue matter anymore - not that it got this implemented before. I encourage anyone who still cares though to upvote the feature request in the Discussion list then. |
Beta Was this translation helpful? Give feedback.
-
i do "WORKDIR /myapp-v1.0.x" and keep incrementing the x every image. seems to avoid a cache |
Beta Was this translation helpful? Give feedback.
-
Thanks for raising this - I have raised this internally for discussion. internal: PCT-328 |
Beta Was this translation helpful? Give feedback.
-
Hey all, update from us - Have a fantastic day and thank you for the support 🎉 |
Beta Was this translation helpful? Give feedback.
-
in the meantime - an easy work around is just update the workdir |
Beta Was this translation helpful? Give feedback.
-
desperately needed |
Beta Was this translation helpful? Give feedback.
-
Been another year, any news? |
Beta Was this translation helpful? Give feedback.
-
Any news on this? This really gives issues with gitops on our project. |
Beta Was this translation helpful? Give feedback.
-
One way to solve this is to use |
Beta Was this translation helpful? Give feedback.
-
Is your feature request related to a problem? Please describe.
I have to rebuild an image as a repository is updated. The problem is that if I build it again, it is built from cache, it does not download the repository again. Right now the only solution is to detele the service, the container and the image, build the image again and update the stack. What I would like is a --no-cache toggle button in the Build image page.
Describe the solution you'd like
A toggle button for --no-cache build command option.
Describe alternatives you've considered
An extra parameters field for build command.
Beta Was this translation helpful? Give feedback.
All reactions