https://orbstack.dev logo
Extra volumes are left behind after docker compose...
# support
k
When I run docker compose down, I have my volumes that are created as part of docker compose up (as expected) but then when I run down, in addition to those created volumes, there are also extra 0kb volumes left behind as well that have random names. https://cdn.discordapp.com/attachments/1419821766875942913/1419822115296907334/Screenshot_2025-09-22_at_5.05.16_PM.png?ex=68d327e3&is=68d1d663&hm=f378d19e6282c9a5ddc48a5dc67b2b383c2f38862cefb3c3db9aee1f82388e28&
example, the mongo vaolume is part of my deployment, the extra one is not but is created on docker compose down.
d
that's normal.
docker compose down -v
to remove them
l
Ah, those unnamed volumes are normally leftovers when the container had a
VOLUME
directive that was not mapped when launching the container (my list of volumes contains lots of those). One way to avoid that is inspecting the image and seeing any declared volume for you to map. Note that
down -v
will also remove the volume you mapped.