Skip to content

Recurring unnamed volumes from mqaf-db

🐛 Bug Report

Summary

The container mqaf-db generates recurring unnamed volumes. These volumes are not deleted automatically and flood the environment.

Steps to Reproduce

  1. Run docker volume ls to check the list of volumes.
  2. Deploy the mqaf-db container using docker-compose up.
  3. Run docker volume ls to check the list of volumes.
  4. Observe that new unnamed volume that has been created.

What is the current bug behavior?

The mqaf-db container continuously generates unnamed volumes, which are not removed even when the container is stopped and removed. In addition, new unnamed volumes are created.

What is the expected correct behavior?

  • Unnamed volumes should not be created unnecessarily.
  • If unnamed volumes are needed, they should be removed automatically when the container stops, unless explicitly retained.

Relevant Logs, Screenshots, or Gifs

Example output of docker volume ls on the vm showing multiple unnamed volumes:

DRIVER    VOLUME NAME
local     0c2b0dc92135c875d389c32385aebd70254b5f744c307a7461e753ac6e340946
local     1aa884367687f96b0e04b53bb05e7aa59cf867710e242e6b31d27c5d93853629
local     1fdbc0f63bdf000b729e9d1ddfb2a7c84618b6fecf739da472d8838b82608b05
local     2a2d134daf61848e01b08a1c1be0a4eaf55b943a6d2dbdf9ff6f41dae6d5d88f
local     2de961ce0a8c048b18ba3091841998d33971886528d91374a0d95c66a68bbfa4
local     3acc37aff78882f7b664c36b6f59cc0028dd71b95bc12a273d8756bc879dd11d
local     3e7dc52d0dcda698cca85e5a5f67ba64a7c1c1125709bb6fadf84f83a87d653b
local     5afdbf36b738bd4f5e74c2f2d84b005b03aa36aef9ebe4b9658dfb51bdb38c58
local     5be69344e706b572262434cfe999ae00bb1b05cfe57af246d84f8e4f4aa7b63a
local     5f6d8d20f41aac0ee42c3253779bf2af57f2bd9d50d37fd591371eb10c591360
local     6ea1fc760c195db63c39dc601391146a086fae64adee68c0f43d335f5aa2e556
local     7f5a5c24836f6ee91028b3c141aba5decd97b1aee501268ebecba571151e0c19
local     8bff2f9addd9f4fe91c2b6a712c158f9e42e9a1b81eba2e9e1f102988e57c794
local     9ac1085ca8cacc6d112401badf8d73224014b172744d10ea283a9e22267d863f
local     9ccea702e39c4488187b2455cad5b9eaeae890be2b6aa116dacbb8455051ef68
local     9dd1b4ef040b4ebb1901075bfb88fc7d48506a04e33b2cd8fb30ee7251427481
local     9f62ff88f48804c6140431e3e9f78e2631dd60678525b5f17383f3137f7a5326
local     9fbbe61ec9599c77e73f30a0db136a3adffb0c46f037fc5edb0a6123f1d2be65
local     20b77319297164d5135a7920e637f3dbfe00a8a7a3fc1b052b5a45654452a23b
local     48a7368dcfefe1f01af48eb6faca87a659652e4d8faa678dd9198a65b47ee7ff
local     75cb9bb17a5733820e5734687868cdd2fd9df2a5c7e51f3808e3ec3f75e89891
local     81c6019ea1bd28046e2f6eff6eae915d45aa27c480a395cee5dc3876fb9ca108
local     84f202bb0f5b38d9a44c77a862dafdde36ac47fa5fed3c6c7eb56275c6ce614b
local     92dffb9039f884758b12422b50e22f3836612397c492bc5cc102abf82ebdf6ce
local     278c2561ae28093f867d265fdbcd66240ba46a85a8f892a30fbeec9407955239
local     508fd5a7a87625cffb347166dfcb445c2a903a623d7e7c0bc6bb9739e42056de
local     770c2b5192921bb4e2aab2483deea88af1631831261f804726bcbe5f2e2db80a
local     0779fec95eb0fc91dc3b805074d1af709af77e22ecb57e1374a9113296471c54
local     1258d172647996978e18d973c12277708155d25370e5c0caf9db7c62cefea482
local     5183a35b835ec78cadaae88f271ab446f300fdaa13c00860138ed0774468654e
local     7630c27d1c51d00875dc91860fc9e8693020d49126a1b06097784836f71bc306
local     8396fab7e814451206aa4d6cf9595d68a2f91e3c196b942f4c8f765dec965993
local     36208a55e563e750b3d8c931c044995afd8a2bc23ee35b41ef32ea509796edfe
local     67320cb8bc1ec0cbfbb11fcca71479d46ab6bb6b138869dbeb63347ffde41a0b
local     72738c03f9c679197ad3cedebf2a59c322f8704d0e9e3397452c9314a8005495
local     81855f59c84cc6c2de1803c21f39052082641be9f5e401ec49fe1bc2e0a83b0f
local     85137df9d4ad855457d94ceb61765c38406212b11ccbfa2f8c205ef14aeeeb5a
local     171054d3a9de0bb78faf33946cac10834d22476102513d586387bab0ae3565c7
local     486372c2dca9e02e0f0237c456aa71525738068463008a74960bd200565cc51e
local     887433b0c6e580c7aa51813546aa948fb24a4c2d6b3de319a25a03e62fa14e23
local     7236846d4258f77e1561b22665d77f53bf1ac1c270b333acbfadec2679d06bb5
local     33960736b8f3327d8e7a02570933045de40ec696e6dcd5309d934f3f8c6c0048
local     61983128f260f1a3b650f77430f6a70537ee1984aedc74acd8667c76822dc8ed
local     67283351535e2d5e6b45809b6800297eaacb5f2da7d7abe67f4e50f7bdffdac3
local     a4e833c3c36c620823c561831e1caa53af93bc2296d3691faaddfe6484acda8d
local     a507a85ad508972d2ca6b2443a7106f1897115bf0e9908346e40fe4e8fac5f60
local     a732e61ce9b71a1cfccfc31a123cceba3963556c6c8fc344634483be92e0aa1b
local     a4230f2022327798f3ecc940be8299c9b75cdd08312b7a4631fac7164ace0180
local     a7949ff53d0cafc355820e5817da0a3717835764d4dc56fcf054793f2c10b804
local     ab2fce52694d0c8c46d612be5ffe80c972d5253b6f5e151d619220d51b383b77
local     aea834e9e886c339122f9a6156f6ae980ecaf1fa53053e7fb9ee0b23d160938c
local     b3c7f5dd3a7daf2825c603853ada9265d1386b2ec0b4e9ec6428ba8195c353e3
local     b04cac54a2c5251e4ef7222ce7aa0760f9f4580e3a1072738277ceb2f18bcf7d
local     b79cf3b83fe02f7caf4e0619b8a3de6efd567ff800c17208e4ab5398f9dc89e8
local     b169956b91b992652ec6bf91e81d0d41df782ced7f7dbfba73edf712064f405c
local     b584297a71454388613efdeaaed20cfd587aa36cf0b4d7f313778d3b7ada798b
local     c6e7cc0cdffad9048fe5a52615fbe5e5a3bad9085b6f919771997da9c2701a19
local     c48c63cac83584646d9e80350c9596aca0f2e529ad87c5287688d1d16ce02a10
local     c261f968e99f78d102fa48ec149c4e17eea3405dc0723b4bef9fddcc75baf587
local     c659a54dba942daec2540240d60c433a56fea9d93bd2b6b095480cc6d4e598d4
local     cc7c84ea915c5e364bcef7db68383447c249880314d4ecdf7194776927ff1b11
local     cd542943ecdc7803e48ee3bf5286409707bae6b7d1be781e4e671ea1e20f5d22
local     constrainify_mqaf_output_volume
local     constrainify_redis_data
local     constrainify_shared_volume
local     constrainify_template_volume

Environment Details

  • Operating System: Ubuntu 24.04

Possible Fix or Suggested Solution

  • Investigate the Dockerfile of mqaf-db for any VOLUME instructions that create anonymous volumes.
  • Explicitly define volumes in docker-compose.yml to manage them properly.
  • Use the --rm flag when running containers to clean up automatically.