-
-
Notifications
You must be signed in to change notification settings - Fork 381
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Build from dockerfile does not recreate image after changes in dockerfile or its context. #547
Comments
Would also vote for an extra button called "build" on the side of the "update" one ;-) |
I am using dockerfile_inline and have the same problem (surprise :-)). If there is no On my side it's also related to watchtower. |
My 2 cents on the fact that the update button should also force build image if their were modifications within the build context is that maybe it will not be the behaviour expected but apart from that it seems perfectly OK IMO. |
Adding some additional information. If you want update button to automatically re build the image. You can use Reference docker compose documentation Not saying this solves the original ask of potential checking if the dockerfile was modified and forced the rebuild VS doing a rebuild every single time. Sample:
|
thanks for the pointer, I didn't look into pull_policy because I didn't want to pull it :-) this actually works for me (only the build, not the final goal):
the build takes longer for the first time and then runs quite fast (though it's always creating a new image, at least that's what it says). And the inline file is shown in green, which is nice. |
🛡️ Security Policy
Description
Images are not rebuilt upon
deploy
orupdate
, if dockerfile was changed. However, I am not sure if this problem could be simply fixed without causing a negative effect on stacks without dockerfiles. In this case a button forcing--build
is good enough solution👟 Reproduction steps
Let's assume having such compose file:
Docker file itself can be empty like:
FROM alpine:latest
👀 Expected behavior
The image should rebuilt like using
docker-compose up --build -d
😓 Actual Behavior
Only container recreated like using
docker-compose up -d
(without --build)Dockge Version
1.4.2
💻 Operating System and Arch
Debian
🌐 Browser
Chrome
🐋 Docker Version
Docker version 20.10.24+dfsg1, build 297e128
🟩 NodeJS Version
No response
📝 Relevant log output
No response
The text was updated successfully, but these errors were encountered: