Open KevinMind opened 2 weeks ago
This issue should theoretically be fixed by https://github.com/moby/moby/issues/48748
However the question will still remain if the label associated anon volumes with our project will still cause some volumes to be skipped.
What happened?
When running make up/down docker compose the existing command
docker volume prune --force
does not remove a large set of anonymous volumes.I've narrowed down the actual STR.
make up DOCKER_VERSION=local
make up DOCKER_VERSION=latest
It seems like this is happening because docker compose is not properly labeling the anonymous volumes so when we re-run make up and it "re-creates" the containers using those volumes it just creates new ones, thinking they don't already exist.
This is a semi-documented issue in docker but might be an edge case.
What did you expect to happen?
It should remove all anonymous/orphaned volumes to prevent accumulation of volumes over time.
Is there an existing issue for this?
┆Issue is synchronized with this Jira Task