-
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] 2.32.0 unnecessarily recreates containers and loses volumes #12383
Comments
For me 2.32.0 running on Linux recreates container which has only bind mounts defined every time i do "docker-compose up -d", even when nothing changed. Sample docker-compose.yml:
I change nothing but each time
|
Same here with docker-compose-2.32.0-1 running on Arch Linux. It keeps on recreating all containers when there are no changes at all. Rolled back to docker-compose-2.31.0-1-x86_64.pkg.tar.zst and the issue is not present there, this appeared with the recent update to 2.32 |
Sounds like some unexpected side effect introduced by #12363 |
Description
My team manages a Django application backed by MySQL. In the development environment, each service runs in a separate container orchestrated by Docker Compose on GitHub Codespaces using their Docker-in-Docker devcontainer feature. This devcontainer feature defaults to the latest version of Docker Compose when creating new Codespaces. As of this morning, we have been unable to persist data in MySQL's attached volume, and the container seems to restart and/or be recreated unnecessarily
Unfortunately, I haven't yet had time to come up with a solid explanation or understanding of what's happening, so I don't have good repro steps. That said, the issue is severe enough for my org. that I wanted to report the problem here before I stopped work for the weekend
Here's the MySQL Docker image we pull, where the database volume is defined: https://github.com/docker-library/mysql/blob/090eb25ac69bca920fc5320484bc35aac92a8143/8.0/Dockerfile.debian
Our in-house reproduction steps have been to:
After manually downgrading back to Docker Compose 2.31.0, I can no longer reproduce the data persistence issue and see fewer recreates/restarts when running
docker compose
commands.I apologize for the lack of specifics in this report, but again, given the instability, I figured that perhaps Docker Compose maintainers would want to hear from a canary sooner than later
Steps To Reproduce
I'm unsure how reproducible this is outside my specific set of Dockerfiles and Docker Compose configurations (which I am disallowed to share), but I'd test with using a MySQL 8 image based on
mysql:8-debian
and see if you can persist data in the volume it creates using Docker Compose 2.32.0.I will try to give this some time on Monday and post a minimal reproducible example if I find it
Compose Version
Docker Environment
Anything else?
The text was updated successfully, but these errors were encountered: