-
Notifications
You must be signed in to change notification settings - Fork 5.3k
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
Proposal: don't "build" as part of "docker-compose up" #693
Comments
Another option would be to default to no build/pull, but add a flag to enable a forced build/pull (even if the containers and images exist), and remove and build/pull flags from |
Could we make it an option in a file? |
Generally I'm in favor of pulling the build/pull step out and making it more explicit. I ran into a case last week where someone wasted days trying to debug a |
@nathanleclaire I believe that problem may have been the root cause of an issue I had a user report last week: postgis/docker-postgis#5 (comment) |
+1 I'm not sure if this proposal is still on the table, but I agree As a user, I would prefer commands to be more composable (no pun intended). |
I can attest to the fact that it took me a while to figure out that So I'm in favor of making it more explicit, and less like magic. |
i propose this syntax:
and: service:
force_update: true the design should be coherent with the forced pull when building an image as proposed in #726 |
👍 to @funkyfuture 's idea of an |
+1. Principle of least surprise. It certainly surprised me that it didn't build if there had been change. |
+1 to @funkyfuture's idea.
A |
Yes, we're planning on doing one of these for 1.6, and providing either a It's likely we'll be going with #12 and using the existing |
I just ran into this issue as well, only by |
I've started to feel that doing a
build
duringdocker-compose up
is potentially causing more trouble than it's worth, and I'm curious if anyone is actually using this functionality.I believe this is a positive change for two reasons:
docker-compose up
I've always had to explicitlydocker-compose build
first (and oftendocker-compose pull
before that). This is because without doing an explicit build/pull, you risk running an older version of the image.build
/pull
as part ofup
starts to require thatup
support every parameter thatbuild
andpull
require, which leads to more code complexity, and a less clean interface (see no cache #687, fig up support '--allow-insecure-ssl' #573, Speed up fig up #586, which are probably just the start)Does anyone actually "need"
docker-compose up
to build containers first? How do you ensure you're actually running the latest container if you don't do an explicitdocker-compose build
first?This would be a non-backwards compatible change, so it would require waiting for a new major release.
The text was updated successfully, but these errors were encountered: