Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Can't get rid of caching with Docker compose#623

Unanswered
ddahan asked this question inQ&A
Discussion options

To Reproduce

When using Docker compose, I can't find a way to force to rebuild everything from the ground up.
Even after having deleted containers, images, volumes (using docker command in ssh) and the project itself from the Dokploy GUI,

When I click on deploy or rebuild, I see lots of CACHED operations in my logs:

image

It may be a skill issue, but it's unclear to me how to manage my deployments properly with docker compose. Because when the docker-compose.yml file changes, it seems the cache should not always be used.

Thanks.

Which area(s) are affected? (Select all that apply)

Docker Compose

You must be logged in to vote

Replies: 1 comment 7 replies

Comment options

It is not a bug, it is the mechanism that docker has to cache and save you time, if you did not make any changes in your project docker will not rebuild anything if it does not detect any changes

You must be logged in to vote
7 replies
@Frits1980
Comment options

Is it possible to have this just be a flip of a switch globally?

Or there is something else going on with my cases. But you reacted before if your project did not change. But then it makes sense for cache to work, but i have this issue even when making changes. I just don't understand it. The only way to work around this is to delete the whole service and create a new one (and even worse i have to choose a different name for the new service). Only then i don't have caching issues. It's so annoying when you are trying to test a deployment before deploying on production.

@djsisson
Comment options

you can just clear the build cache manually if required,docker buildx prunehttps://docs.docker.com/reference/cli/docker/buildx/prune/

@Frits1980
Comment options

In the sense of having a UI for deployment the advice is to go back to the CLI. That just doesn't make sense to me.

@djsisson
Comment options

dokploy ui has a builder cleanup, which does the above, but if for some reason its not working, then you can run manually instead of having to remake your entire project

@Frits1980
Comment options

Ok, another question than. Dokploy introduced project environments (named the default env "production"), which suggests that someone would create another for staging and well maybe even another one closer to dev? But why not create a simple way to disable caching (like I said, with the flip of a switch) in those environments? Or like I said before, within every service. It's not that hard to understand why this would be a great feature in my eyes, but maybe I'm missing something. Please enlighten me if so.

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Category
Q&A
Labels
questionFurther information is requested
4 participants
@ddahan@Frits1980@Siumauricio@djsisson
Converted from issue

This discussion was converted from issue#620 on October 29, 2024 20:56.


[8]ページ先頭

©2009-2026 Movatter.jp