-
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
[BUG] up
incorrectly recreates containers without changes + recreated containers have wrong files inside
#12027
Comments
Hi! Couldn't reproduce it on |
Hi @idsulik. |
@rivit98 could you try to reproduce with the latest version? |
@jhrotko
|
Another demo reproduce this bug
|
Description
Hi, I have the following problem:
I have a repository where each service has its own separate directory containing a
Dockerfile
(same for each service) and a file namedflag.txt
(different for each service, the contents follow the service name). I noticed that after executingdocker compose -p test up --build
twice, some containers are recreated, but there was no configuration change. What's more - the flag.txt inside the recreated containers is completely different than expected (see the video).Repository is available here: https://github.com/rivit98/docker-compose-experiments
bug.mp4
Steps To Reproduce
git clone https://github.com/rivit98/docker-compose-experiments
cd docker-compose-experiments
docker compose -p test up --build
docker compose -p test up --build
- observe that some containers were recreated even if there were no changes in configuration/files/etc. If there were no recreated containers go to step 4.find * -maxdepth 0 -type d | xargs -I{} bash -c "echo -n 'service: {} '; docker compose -p test exec -T {} cat /flag.txt; echo"
- observe that containers that were recreated have wrong flag.txt file.Compose Version
Docker Environment
Anything else?
No response
The text was updated successfully, but these errors were encountered: